secrets provide you with a mechanism to use such information in a safe and reliable way with the following properties:
- secrets are namespaced objects, that is exist in the context of a namespace
- you can access them via a volume or an environment variable from a container running in a pod.
- the secret data on nodes is stored in tmpfs volumes (tmpfs is a file system which keeps all files in virtual memory. everything in tmpfs is temporary in the sense that no files will be created on your hard drive
- a per-secret size limit of 1MB exist
- the api server stores secrets plaintext in etcd
Secrets can be created:
- from a text file
- from a yaml file