sagar:
Hi Guys,
Just a question.
While am setting up a k8-cluster V1.20.0 through kubeadm, I see below error related to cgroup driver.
root@controlplane:~# kubeadm join 10.18.192.6:6443 --token 7vfq1k.fj12vmi2fc4jd6if --discovery-token-ca-cert-hash sha256:14e18f9160d459168a183f2a386a8e83f73d83adf79bd8de54293736a16f3d91
[preflight] Running pre-flight checks
[WARNING IsDockerSystemdCheck]: detected “cgroupfs” as the Docker cgroup driver. The recommended driver is “systemd”. Please follow the guide at https://kubernetes.io/docs/setup/cri/
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR DirAvailable–etc-kubernetes-manifests]: /etc/kubernetes/manifests is not empty
[ERROR FileAvailable–etc-kubernetes-kubelet.conf]: /etc/kubernetes/kubelet.conf already exists
[ERROR FileAvailable–etc-kubernetes-pki-ca.crt]: /etc/kubernetes/pki/ca.crt already exists
[preflight] If you know what you are doing, you can make a check non-fatal with --ignore-preflight-errors=...
To see the stack trace of this error execute with --v=5 or higher
Any one faced the same error n resolved?
I got stuck here from long time.
Also already tried below technote but no luck.
https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/configure-cgroup-driver/