---
title: "Comment by Nirmal on \"Kubernetes Cluster Deployment on Ubuntu Linux\" | Hashnode"
description: "Hello Akash After installing kubectl while checking the version it&#39;s showing some connection refused to local hosts root@k8s-master:/etc# kubectl version Cl"
url: "https://hashnode.com/posts/kubernetes-cluster-deployment-on-ubuntu-linux/60c86dd8bbd8c506819af2f0/comment/6119f5f5ac5c985f364373be"
---

[Discussion](https://hashnode.com/posts/kubernetes-cluster-deployment-on-ubuntu-linux/60c86dd8bbd8c506819af2f0)

Comment [Kubernetes Cluster Deployment on Ubuntu Linux](https://hashnode.com/posts/kubernetes-cluster-deployment-on-ubuntu-linux/60c86dd8bbd8c506819af2f0)

[Nirmal](https://hashnode.com/@nacharya)

[Aug 16, 2021](https://hashnode.com/posts/kubernetes-cluster-deployment-on-ubuntu-linux/60c86dd8bbd8c506819af2f0/comment/6119f5f5ac5c985f364373be)

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?

[Nirmal](https://hashnode.com/@nacharya)

[Aug 20, 2021](https://hashnode.com/posts/kubernetes-cluster-deployment-on-ubuntu-linux/60c86dd8bbd8c506819af2f0/comment/6119f5f5ac5c985f364373be#reply-61200189e404793819ca8265)

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