Created
June 20, 2018 21:13
-
-
Save cdimascio/f55b4d45a0772f96a6eb455c8ba294b7 to your computer and use it in GitHub Desktop.
Kubernetes: Create Secret with a Self Signed TLS cert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /tmp/tls.key -out /tmp/tls.crt -subj "/CN=example.domain.com" | |
kubectl create secret tls example --key /tmp/tls.key --cert /tmp/tls.crt # example is the ingress secret key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment