Skip to content

Instantly share code, notes, and snippets.

@liubin
Forked from aojea/k8s-csr-approve.sh
Last active July 19, 2018 03:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liubin/3e01a8de7f66c1e24e03eda3fc96f84f to your computer and use it in GitHub Desktop.
Save liubin/3e01a8de7f66c1e24e03eda3fc96f84f to your computer and use it in GitHub Desktop.
online kubernetes certificate auto approval
for i in $(kubectl get csr | grep Pending | awk '{ print $1 }' ) ; do kubectl certificate approve $i; sleep 1; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment