Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
napalm@nucklehead:~ $ kubectl get service -A
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
default kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 2d12h
napalm@nucklehead:~ $ kubectl delete svc/kubernetes
service "kubernetes" deleted
napalm@nucklehead:~ $ kubectl get service -A
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
default kubernetes ClusterIP 10.50.0.1 <none> 443/TCP 4s
napalm@nucklehead:~ $
[ update systemd unit files and restart kube-apiserver and kube-controller-manager on the controllers ]
napalm@nucklehead:~ $ kubectl delete svc/kubernetes
service "kubernetes" deleted
napalm@nucklehead:~ $ kubectl get service -A
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
default kubernetes ClusterIP 10.20.0.1 <none> 443/TCP 1s
napalm@nucklehead:~ $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment