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_FILE

also accepted

kubectl create secret tlskubectl create secret tls SECRET_NAME

Test your recall — not just your reading.

Practice with interactive quiz →