How to restart the kube-apiserver?

8/3/2018

I restarted my system today. After that my main system and the web browser are not connected to look for a kubernetes GUI.

When I ran the command systemctl status kube-apiserver.service, it gives output as shown below

 kube-apiserver.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

Can anyone suggest me how to overcome this issue.

-- Deepak Nayak
kubernetes

1 Answer

8/9/2018

I had similar issue but done something simple to get arround this. I think its just systemctl status kube-apiserver.

If the above works Please try these steps

On Master:

Restart all services etcd kube-apiserver kube-controller-manager kube-scheduler flanneld

On Worker/Node:

Restart all services kube-proxy kubelet flanneld docker

E.g:

systemctl restart kube-controller-manager
systemctl enable kube-controller-manager
systemctl status kube-controller-manager

Note: if its node is both master and worker. Start both on same node.

The above steps worked for me (but we are working on 1.7). Hope that helps

-- Sudhakar MNSR
Source: StackOverflow