Sign in
Log inSign up
Rakesh Jain

153 likes

·

3.2K reads

6 comments

Krishna Mruthy
Krishna Mruthy
Jun 17, 2021

Very useful, have you done in local box using vagrant or virtual box?

21
·
·1 reply
Rakesh Jain
Rakesh Jain
Author
·Jun 17, 2021

Glad to hear that. Yes it was provisioned on a vagrant cluster running locally.

20
·
Nirmal
Nirmal
Aug 16, 2021

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?

·
·1 reply
Nirmal
Nirmal
Aug 20, 2021

The fix was to add: Environment="KUBELET_EXTRA_ARGS=--cgroup-driver=cgroupfs" in /etc/systemd/system/kubelet.service.d/10-kubeadm.conf

·