From the course: Kubernetes: Package Management with Helm

Unlock the full course today

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

Deploy and update a Kubernetes secret via Helm

Deploy and update a Kubernetes secret via Helm

From the course: Kubernetes: Package Management with Helm

Start my 1-month free trial

Deploy and update a Kubernetes secret via Helm

- [Woman] We've covered how to create a config map in a Helm chart. And now we're going to deploy a Kubernetes secret using Helm. Kubernetes secrets store sensitive information like passwords and SSH keys. And if you store this information under the data map, that string data in the secrets manifest, the data must be encoded with base 64. In the templates directory, let's create a file called secret.yamo. I've got a secret manifest in the exercise files. So let's copy and paste this. This secret is called first secret, and it will store a set of credentials a username and password. The username is admin. And we'll use base 64 to encode this string from our command line. Let's copy the username. Head to the command line and encoded with the command echo-n. Paste the username, pipe base64. Your output may differ from mine, but the encoded string will look something like this. Let's paste that as the value in…

Contents