153 likes
·
3.2K reads
6 comments
Very useful, have you done in local box using vagrant or virtual box?
Glad to hear that. Yes it was provisioned on a vagrant cluster running locally.
Hello Akash After installing kubectl while checking the version it's showing some connection refused to local hosts
root@k8s-master:/etc# kubectl version Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.0", GitCommit:"c2b5237ccd9c0f1d600d3072634ca66cefdf272f", GitTreeState:"clean", BuildDate:"2021-08-04T18:03:20Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"} The connection to the server localhost:8080 was refused - did you specify the right host or port?
The fix was to add: Environment="KUBELET_EXTRA_ARGS=--cgroup-driver=cgroupfs" in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf