Secrets
Secrets are useful for encrypting user credentials inside your pods or services.
Working with Secrets
Creating a secret
$ kubectl create secret generic apikey —from-literal=api_key=186289106
List all secrets
$ kubectl get secrets
Ouput the secret as a yaml file
$ kubectl get secret apikey -o yaml
Last updated
Was this helpful?