Environment variables
ConfigMaps
k8s can split an application from its configuration using resource type ConfigMap
.
Secrets
- store sensitive information like password, OAuth tokens, certificates, SSH keys
Secrets
are kind like customized ConfigMaps
Store secrets
You can either encode in base64
or let k8s do it for you:
Using a Secret
to create files
Using a Secret
to set an environment variable
Using a Secret
to fetch an image from a private registry
Using a Secret
to expose an Ingress
in HTTPS