kubernetesgoogle-kubernetes-engineglusterfsgoogle-container-os

Deploy glusterfs/heketi inside Kubernetes 1.6.1 on GKE cos image


I am facing this problem when deploying Glusterfs + Heketi (thanks to this excellent repo) inside a GKE Kubernetes 1.6.1 cluster with nodes using the cos image. Thegk-deploy script went well until it tried to execute 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

I know the fix that consists in using modeprobe dm_thin_pool to each Kubernetes node, But it won't work on the cos image type.

How could we load this module in a google container optimized OS (cos image)?


Solution

  • Heketi make use of this module when creating LVM devices so required in the host image. This module should be part of cos or similar image in GKE as like other distros. It would be appreciated if you can open a RFE request to achieve the same.