QuestionQ270

VerifiedKubernetes Fundamentals

Which kubectl command creates a tls-type Secret containing the TLS certificate and its corresponding key?

Explanation

The kubectl create secret tls command creates a TLS Secret from a certificate and its matching private key. Its required inputs are supplied using --cert=path/to/tls.crt and --key=path/to/tls.key; this produces the Kubernetes TLS Secret type rather than an Opaque generic Secret.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!