Installing a TLS Cert in Kubernetes

If you have a certificate and key and want to replace the self-signed certificate on the server you can use the command line


echo "$(kubectl create secret tls -n reach reach-tls-cert --key="tls.key" --cert="tls.crt" --dry-run=client -o yaml)" | kubectl apply -n reach -f - 
T
Tom is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.