Solved

Kubernetes containers failing to create


Badge
From https://next.nutanix.com/discussion-forum-14/kubernetes-failed-volume-mount-30955

Using Kubernetes 1.9.x
Nutanix AOS 5.6.1 (not ce, but I do not have access to that support portal) this was an issue on my CE lab also.
Centos 7.x
ESXi is the HV, Kubernetes sits on vms in vSphere

Following the steps, mounting the iscsi to each host, I can see them with fdisk-l but am receiving the following error when deploying the node.yaml ; All the hosts have these files and directories.

Warning FailedMount 7m (x7 over 7m) kubelet, css-mpisd-web3 MountVolume.SetUp failed for volume "iscsi-dir" : hostPath type check failed: /etc/iscsi is not a directory

Warning FailedMount 7m (x7 over 7m) kubelet, css-mpisd-web3 MountVolume.SetUp failed for volume "iscsiadm" : hostPath type check failed: /sbin/iscsiadm is not a file

Warning FailedMount 1m (x11 over 7m) kubelet, css-mpisd-web3 MountVolume.SetUp failed for volume "lib-dir" : hostPath type check failed: /lib/modules is not a directory

Followed that doc and a few others around the plugin; I confirmed iscsi, the plugin, discovered the drives, even mounted to the host from Nutanix.

I havent been able to test pvc's because I am unable to get the Nutanix ntnx-nodes yaml to create a container, it fails with those error messages.
icon

Best answer by bpendleton 5 October 2018, 19:25

Resolved: This issue happens when kubelet is containerized ; deployed a cluster using kubeadm and was able to bring up nutanix and communicate between the two. (k8 & nutanix)

View original

1 reply

Badge
Resolved: This issue happens when kubelet is containerized ; deployed a cluster using kubeadm and was able to bring up nutanix and communicate between the two. (k8 & nutanix)

Reply