Complete the code to create a generic secret with kubectl.
kubectl create secret [1] mysecret --from-literal=username=admin
The generic secret type is used for generic secrets with arbitrary key-value pairs.
Complete the code to create a docker-registry secret with kubectl.
kubectl create secret [1] regsecret --docker-username=user --docker-password=pass --docker-server=myregistry.com
The docker-registry secret type stores credentials for accessing private Docker registries.
Fix the error in the command to create a TLS secret.
kubectl create secret tls mytlssecret --cert=[1] --key=key.pemThe --cert flag expects the path to the certificate file, commonly named tls.crt.
Fill both blanks to create a TLS secret with correct file names.
kubectl create secret tls mytlssecret --cert=[1] --key=[2]
The --cert flag should point to the certificate file (e.g., tls.crt) and --key to the private key file (e.g., tls.key).
Fill all three blanks to create an opaque secret with username and password.
kubectl create secret [1] mysecret --from-literal=[2]=admin --from-literal=[3]=1234
Use generic for generic secrets, and specify keys like username and password with their values.