在 GKE cos 映像上部署 glusterfs/heketi inside Kubernetes 1.6.1

Deploy glusterfs/heketi inside Kubernetes 1.6.1 on GKE cos image

在节点使用 cos 映像的 GKE Kubernetes 1.6.1 集群中部署 Glusterfs + Heketi(感谢 this excellent repo)时,我遇到了这个问题。 gk-deploy 脚本运行良好,直到它尝试执行 heketi-cli -s http://${heketi_service} setup-openshift-heketi-storage

Error: Unable to execute command on glusterfs-xxxxx: /usr/sbin/modprobe failed: 1 thin: Required device-mapper target(s) not detected in your kernel. Run `lvcreate --help' for more information. Failed on setup openshift heketi storage

我知道对每个 Kubernetes 节点使用 modeprobe dm_thin_pool 的修复方法,但它不适用于 cos 图像类型。

我们如何将此模块加载到 google 容器优化 OS(cos 图像)?

Heketi 在创建主机映像所需的 LVM 设备时使用此模块。与其他发行版一样,此模块应该是 GKE 中 cos 或类似图像的一部分。如果您能打开一个 RFE 请求来实现相同的目的,我们将不胜感激。