Skip to main content
InterviewHubPRO
Section Overview
Q11

Question 11 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

22%
Kubernetes (K8s) (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

ConfigMaps and Secrets: Configuration Management.

junior LevelMost AskedkubernetesBasic

In Simple Words:

  • ConfigMap: Stores non-confidential configuration (environment variables, config files like nginx.conf) in plaintext key-value pairs.
  • Secret: Stores sensitive data (passwords, TLS certificates, OAuth tokens).
    • By default, secrets are stored as base64-encoded strings in etcd.
    • Can be injected into containers as environment variables or mounted as files inside a volume.
    • Best Practice: Volume-mounted secrets update automatically when the Secret changes in Kubernetes, whereas environment variables require a Pod restart to refresh.