Skip to content

Instantly share code, notes, and snippets.

@zryfish
Created June 5, 2019 12:24
Show Gist options
  • Select an option

  • Save zryfish/054d54cbaf012990552b1ba4e2510831 to your computer and use it in GitHub Desktop.

Select an option

Save zryfish/054d54cbaf012990552b1ba4e2510831 to your computer and use it in GitHub Desktop.
kubectl delete csr --all
kubectl get node -lrole!=master -o=jsonpath='{range .items[*]}{.status.addresses[0].address}{"\n"}{end}' | xargs -I {} ssh {} "rm /etc/kubernetes/kubelet.conf && systemctl restart kubelet"
kubectl get csr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment