I have some trouble with scaling my kubernetes cluster with new worker nodes.
All nodes I have added is stuck with message “Waiting for kubelet,kube-proxy to start” and status waiting for hours now.
I’m using juju 2.6.8, and the vsphere provider.
I have updated all charms in the model to the latest version.
App Version Status Scale Charm Store Rev OS Notes
containerd active 5 containerd jujucharms 20 ubuntu
easyrsa 3.0.1 active 1 easyrsa jujucharms 270 ubuntu
etcd 3.2.10 active 3 etcd jujucharms 434 ubuntu
flannel 0.10.0 active 7 flannel jujucharms 438 ubuntu
kubeapi-load-balancer 1.14.0 maintenance 1 kubeapi-load-balancer jujucharms 649 ubuntu exposed
kubernetes-master 1.15.3 active 2 kubernetes-master jujucharms 724 ubuntu
kubernetes-worker 1.15.3 waiting 5 kubernetes-worker jujucharms 571 ubuntu exposed
vsphere-integrator active 1 vsphere-integrator jujucharms 2 ubuntu
Show status from the unit says
Time Type Status Message
08 Sep 2019 13:18:51Z juju-unit executing running container-runtime-relation-joined hook
08 Sep 2019 13:19:07Z workload maintenance Unpacking cni resource.
08 Sep 2019 13:19:12Z juju-unit executing running kube-api-endpoint-relation-changed hook
08 Sep 2019 13:19:33Z juju-unit executing running cni-relation-joined hook
08 Sep 2019 13:19:49Z juju-unit executing running kube-control-relation-joined hook
08 Sep 2019 13:20:05Z juju-unit executing running cni-relation-changed hook
08 Sep 2019 13:20:21Z juju-unit executing running certificates-relation-changed hook
08 Sep 2019 13:20:39Z juju-unit executing running cni-relation-changed hook
08 Sep 2019 13:21:01Z juju-unit executing running container-runtime-relation-changed hook
08 Sep 2019 13:21:19Z juju-unit executing running kube-control-relation-changed hook
08 Sep 2019 13:21:38Z juju-unit idle
08 Sep 2019 13:33:01Z juju-unit executing running config-changed hook
08 Sep 2019 13:33:32Z juju-unit idle
08 Sep 2019 13:43:29Z juju-unit executing running leader-settings-changed hook
08 Sep 2019 13:43:44Z juju-unit idle
08 Sep 2019 13:48:08Z juju-unit executing running config-changed hook
08 Sep 2019 13:48:21Z workload waiting Waiting for kubelet,kube-proxy to start.
08 Sep 2019 13:48:21Z juju-unit idle
08 Sep 2019 13:48:52Z workload active Kubernetes worker running.
08 Sep 2019 14:19:36Z workload waiting Waiting for kubelet,kube-proxy to start.
when I ssh into the new machine it says:
ubuntu@juju-570578-30:~$ ps aux | grep kubelet
ubuntu 3295 0.0 0.0 14856 1076 pts/0 S+ 14:21 0:00 grep --color=auto kubelet
ubuntu@juju-570578-30:~$
when on the old machine it says
ubuntu 11834 0.0 0.0 14856 1008 pts/0 S+ 14:24 0:00 grep --color=auto kubelet
root 14571 4.0 0.5 2157668 98508 ? Ssl Sep01 443:30 /snap/kubelet/1179/kubelet --cloud-provider=vsphere --config=/root/cdk/kubelet/config.yaml --container-runtime=remote --container-runtime-endpoint=unix:///var/run/containerd/containerd.sock --dynamic-config-dir=/root/cdk/kubelet/dynamic-config --config=/root/cdk/kubelet/config.yaml --kubeconfig=/root/cdk/kubeconfig --logtostderr --network-plugin=cni --node-ip=10.0.50.228 --pod-infra-container-image=image-registry.canonical.com:5000/cdk/pause-amd64:3.1 --provider-id=vsphere://42251125-CA33-13AB-8677-7CB280A16504 --v=0
Seems like kubelet doesnt start at all…
Seems like the folder /root/cdk/kubelet
in the machine does not exist at all, and no config files related to kubelet in /root/cdk
is found.
I presume there should have been some thing related to kubelet in this directory.
root@juju-570578-30:~/cdk# ls -la
total 36
drwxrwx--- 2 root root 4096 Sep 8 13:20 .
drwx------ 6 root root 4096 Sep 8 14:28 ..
-r--r----- 1 root root 1172 Sep 8 13:16 ca.crt
-rw-r--r-- 1 root root 4380 Sep 8 13:20 client.crt
-rw-r--r-- 1 root root 1704 Sep 8 13:20 client.key
-rw-r--r-- 1 root root 4594 Sep 8 13:20 server.crt
-rw-r--r-- 1 root root 1704 Sep 8 13:20 server.key
root@juju-570578-30:~/cdk# pwd
/root/cdk
Anyone has the same problems?
Daniel