kubeadm init failed control-plan cloud-init
If you have found any duplicates, you should instead reply there and close this page.
If you have not found any duplicates, delete this section and continue on.
BUG REPORT
kubeadm version (use kubeadm version):
latest
Environment:
kubectl version):uname -a):after install docker and k8s in my cloud init script on my master vm, i launch kubeadm init and the control plane failed. If i stop the script juste before kubeadm and then logged to the vm and launch kubeadm init with sudo it s work. why the cloud init script is different ?
i launch kubeadm init --pod-network-cidr=10.244.0.0/16
here is the failed
[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifests". This can take up to 4m0s
kubeadm init --pod-network-cidr=10.244.0.0/16 on the vm
[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifests". This can take up to 4m0s
[apiclient] All control plane components are healthy after 22.504496 seconds
[uploadconfig] storing the configuration used in ConfigMap "kubeadm-config" in the "kube-system 禄 Namespace
i am behind a corporate proxy wel confugured on curl, apt and docker
Can you try to unset proxy when you run kubeadm init? Because i remember that i used to set proxy the init failed.
you made my day, i don t know why but after unset proxys, it works here is the log
thx
Bruno
[[0;32m OK [0m] Stopped kubelet: The Kubernetes Node Agent.
[[0;32m OK [0m] Started kubelet: The Kubernetes Node Agent.
[[0;32m OK [0m] Stopped kubelet: The Kubernetes Node Agent.
[[0;32m OK [0m] Started kubelet: The Kubernetes Node Agent.
[[0;32m OK [0m] Stopped kubelet: The Kubernetes Node Agent.
[[0;32m OK [0m] Started kubelet: The Kubernetes Node Agent.
[[0;32m OK [0m] Stopped kubelet: The Kubernetes Node Agent.
[[0;32m OK [0m] Started kubelet: The Kubernetes Node Agent.
[[0;32m OK [0m] Stopped kubelet: The Kubernetes Node Agent.
[[0;32m OK [0m] Started kubelet: The Kubernetes Node Agent.
[[0;32m OK [0m] Stopped kubelet: The Kubernetes Node Agent.
[[0;32m OK [0m] Started kubelet: The Kubernetes Node Agent.
[[0;32m OK [0m] Stopped kubelet: The Kubernetes Node Agent.
[[0;32m OK [0m] Started kubelet: The Kubernetes Node Agent.
[[0;32m OK [0m] Stopped kubelet: The Kubernetes Node Agent.
[[0;32m OK [0m] Started kubelet: The Kubernetes Node Agent.
[[0;32m OK [0m] Started Kubernetes systemd probe.