Kubernetes Containers Failing to Create | Nutanix Community
Skip to main content
Solved

Kubernetes Containers Failing to Create

  • September 28, 2018
  • 1 reply
  • 1776 views

Forum|alt.badge.img
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.

Best answer by bpendleton

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
Did this topic help you find an answer to your question?
This topic has been closed for comments

1 reply

Forum|alt.badge.img
  • Author
  • Voyager
  • 2 replies
  • Answer
  • October 5, 2018
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)