Create a TLS Secret from cert and key files.
Section: Imperative Resource Creation
Create TLS secret
bash
bash
kubectl create secret tls ingress-cert --cert=tls.crt --key=tls.keyExplanation
Create a TLS Secret from cert and key files.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Imperative Resource Creation