Reset kubernetes master or work

Reset kubernetes master or work


After run init, following error was occurred.

dial tcp connect: connection refused.

Run following command to reinit kubernetes master or worker

sudo mkdir /etc/docker
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"
sudo systemctl enable docker
sudo systemctl daemon-reload
sudo systemctl restart docker
sudo kubeadm reset


sudo kubeadm init


Join cluster

kubeadm join ...

Label it as worker

kubectl label node kworker1

Install Network Policy Provider

Following messages are printed to create pod network.

You should now deploy a pod network to the cluster.
Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:

Install Weave Net for NetworkPolicy.

kubectl apply -f "$(kubectl version | base64 | tr -d '\n')"


Kubernetes kubeadm init fails due to dial tcp connect: connection refused
kubernetes cluster master node not ready
Weave Net for NetworkPolicy

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

The reCAPTCHA verification period has expired. Please reload the page.