Skip to content

Instantly share code, notes, and snippets.

@jiang-wei
Created June 29, 2018 20:46
Show Gist options
  • Select an option

  • Save jiang-wei/25e0444c5d74c26b649e91fa42b91858 to your computer and use it in GitHub Desktop.

Select an option

Save jiang-wei/25e0444c5d74c26b649e91fa42b91858 to your computer and use it in GitHub Desktop.
kubectl update secret
kubectl create secret generic production-tls --from-file=./tls.key --from-file=./tls.crt --dry-run -o yaml | kubectl apply -f -
kubectl create secret tls production-tls --key=./tls.key --cert=./tls.crt --dry-run -o yaml | kubectl apply -f -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment