Secrets
A secret, as its name suggests, is an object that stores secrets in key-value format for providing sensitive information to pods. It might be a password, an access key, or a token. A secret isn't stored in the disk; instead, it's stored in a per-node tmpfs filesystem. Kubelet on the node will create a tmpfs filesystem to store the secret. A secret isn't designed to store large amounts of data due to storage management considerations. The current size limit of one secret is 1 MB.
We can create a secret based on a file, a directory, or a specified literal value by launching kubectl to create a secret command or by the spec. There are three types of secret format: generic (or opaque, if encoded), docker registry, and TLS.
We'll use either ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access