hardkubectl
Create a TLS Secret from a certificate and private key file pair
command
kubectl create secret tls SECRET_NAME --cert=CERT_FILE --key=KEY_FILEalso accepted
kubectl create secret tlskubectl create secret tls SECRET_NAMEcommand
kubectl create secret tls SECRET_NAME --cert=CERT_FILE --key=KEY_FILEalso accepted
kubectl create secret tlskubectl create secret tls SECRET_NAMEPart of the Kubernetes CLI (kubectl) — ConfigMaps & Secrets category.
| Flag | Purpose |
|---|---|
--cert | Set to: CERT_FILE |
--key | Set to: KEY_FILE |
Test your recall — not just your reading.
Practice with interactive quiz →