Source: kubernetes-advocate.medium.com

Secrets Management in Kubernetes
Kubernetes Secrets are secure objects which store sensitive data, such as passwords, OAuth tokens, and SSH keys etc. with encryption in your clusters. Using Secrets gives you more flexible in a Pod Life cycle definition, and control over how sensitive data is used.

List secret: View secret: Using YAML file: The Secret contains two maps: data and stringData.

Decoding secret values: A Secret can be used with your workloads in two ways: Environment variables: Secret as Volume: Additional Info : Secret creation syntax

Related Articles