Complete the command to create a generic secret named mysecret with a literal key-value pair.
kubectl create secret generic mysecret --from-literal=[1]
The --from-literal option requires a key=value pair, such as username=admin.
Complete the command to create a secret from a file named config.json.
kubectl create secret generic config-secret --from-file=[1]
The --from-file option expects the exact file name to include in the secret.
Fix the error in the command to create a secret named db-secret with a literal password.
kubectl create secret generic db-secret --from-literal=[1]
The --from-literal option requires a key=value format, so password=12345 is correct.
Fill both blanks to create a secret named api-secret from a file and specify the secret type as kubernetes.io/basic-auth.
kubectl create secret generic api-secret --from-file=[1] --type=[2]
The file auth.txt is used with --from-file, and the secret type is set with --type=kubernetes.io/basic-auth.
Fill all three blanks to create a secret named token-secret from a literal token, specify the namespace dev, and set the secret type to Opaque.
kubectl create secret generic token-secret --from-literal=[1] --namespace=[2] --type=[3]
The literal token is token=abc123, the namespace is dev, and the secret type is Opaque.