what is the use of secrets in kubernetes, and what is its purpose?

3/6/2019

I am new to kubernetes and I am not able to understand what is the use of secrets in kubernetes, can anybody tell me why secrets are used and what is the purpose of secrets?

-- Mangesh Narkhede
containers
devops
docker
kubernetes

1 Answer

3/6/2019

Secrets are used to manage sensitive information like database passwords, user credentials, ssl certificates etc.

It would help you decouple the sensitive information from the builds. You can bind the secrets as volume or environment variables in the pod at run time

-- P Ekambaram
Source: StackOverflow