vineet singh:
I m getting issue in cgroup configuration not set to systemd for docker run time in cluster installation Lab.
I tried setting /etc/docker/daemon.json but still i m not able to join the nodes .
Mohamed Ayman:
try this
cat <<EOF | sudo tee /etc/docker/daemon.json
{
"exec-opts": ["native.cgroupdriver=systemd"],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m"
},
"storage-driver": "overlay2"
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
vineet singh:
yes i tried this already . but getting following error on join command execution .
Failed to request cluster-info, will try again: Get “https://172.17.0.60:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
vineet singh:
I resloved it thanks for the help . I forget to add --apiserver-advertise-address in kubeadm init command