From the course: Securing Containers and Kubernetes Ecosystem

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Secrets management

Secrets management - Kubernetes Tutorial

From the course: Securing Containers and Kubernetes Ecosystem

Start my 1-month free trial

Secrets management

- [Instructor] There are several use cases for Secrets in the Kubernetes environment. The most obvious one is when you want your Pods to use Secrets such as access tokens, passwords, or API keys. The other use cases are really two components of your Kubernetes cluster. These components also need Secrets so that they can communicate with the API server or other components. Kubernetes offers a first class object known as Secret, which holds the key-value pair information. The Secret is stored in etcd store as base64 encoded value. Keep in mind that base64 is an encoding mechanism and not an encryption technique. This encoding is used to convert binary data into plain text format. Starting with Kubernetes Version 1.7 onwards, Secrets stored in etcd are also encrypted. The Secrets can be passed onto your application via a mounted volume or via an environment variable. One common example of using Secrets is that every Pod…

Contents