How to restart kube-proxy in Kubernetes 1.2 (GKE)

As in Kubernetes 1.2, kube-proxy is now a swap in the namespace of kube-systems.

The old init script /etc/init.d/kube-proxy has been deleted.

Besides just resetting the GCE instance, is there a good way to restart kube-proxy?

I just added annotation to change proxy mode, and I need to restart kube-proxy so that my changes take effect.

+4
source share
1 answer

The kube proxy server starts as an add-on module, which means that Kubelet will automatically restart it if it disappears. This means that you can restart the kube-proxy module by simply removing it:

$ kubectl delete pod --namespace=kube-system kube-proxy-${NODE_NAME}

$NODE_NAME - node, - ( , kubectl get pods --kube-system kube-proxy-).

- kube , , /etc/kubernetes/manifests node.

+4

All Articles