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=186289106List all secrets
$ kubectl get secretsOuput the secret as a yaml file
$ kubectl get secret apikey -o yamlLast updated
Was this helpful?