Introduction
Understand how to securely handle sensitive configuration data in Kubernetes using Secrets. Explore the differences from ConfigMaps, how to encode and inject Secrets as environment variables, and use stringData for ease of creation.
We'll cover the following...
We'll cover the following...
Secrets
It’s common to need to pass sensitive configs to our applications like credentials and private keys. We could use ConfigMaps for these configs as well, but when we are concerned with the security of these values, we have a better option: Secrets.
The way a Secret is used is pretty similar to a ConfigMap, but there are some key differences in how they work under the hood: