Dilip Kumar
1 min readFeb 1, 2020

--

Kubernetes stores secrets as base64 encoded string in the template secrets.yaml file. When a pod is created and the secret is mounted then Kubernetes make sure to mount secret as plain text so that the application can use it.

Ideally on production; you will never use serets.yaml bcz you don’t want to expose your secrets. The best way is to manually use kubectl and add secrets.

--

--

Dilip Kumar
Dilip Kumar

Written by Dilip Kumar

With 18+ years of experience as a software engineer. Enjoy teaching, writing, leading team. Last 4+ years, working at Google as a backend Software Engineer.

No responses yet