Secrets in Kubernetes
Planted .
Secrets are similar to ConfigMaps but are used to hold confidential data. Since these can be created separately from the pods, there is less risk of it being exposed.
These can be used to set environment variables for a container, for example.
There are few types:
- Opaque - default
- ServiceAccount Token
- Docker config
- Basic authentication
- TLS
- Bootstrap token
Paths into this note
2 notes lead here
-
There are a few ways to use secrets with pods.
-
Similar to how to create a ConfigMap, we create secrets: