8 lines
417 B
Plaintext
8 lines
417 B
Plaintext
kubectl create secret generic <secret_name> --from-literal key=value
|
|
|
|
create - Imperative command to create a new object
|
|
secret - Type of object we are going to create
|
|
generic - Type of secret
|
|
<secret_name> - Name of secret for later reference in a pod config
|
|
--from-literal - We are going to add the secret information into this command(as opposed to from . file))
|
|
key=value - Key-value par of the secret information |