QuestionQ8

VerifiedKubernetes Security Fundamentals

What is the recommended method for passing Secrets to a container running in a Pod?

Explanation

A Kubernetes Secret volume passes confidential data to the Pod as read-only files and is backed by tmpfs, so it is not written to nonvolatile storage. ConfigMaps are intended for non-confidential configuration, and secrets should not be embedded in container images. Environment variables are supported, but a Secret volume is the preferred choice here.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!