Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 735 Bytes

File metadata and controls

23 lines (15 loc) · 735 Bytes

Configuration Resource

Kubernetes provides native configuration resources for general and confidential data, which allows decoupling of configuration lifecycle from the application lifecycle. ConfigMap and Secrets.

Problem

EnvVar configuration is suitable only for simple configurations. Environment variables can be defined at multiple places which makes it hard to find the definition of a variable. Therefore, it is better to keep all configuration data in a single place. Kubernetes provides this via ConfigMaps and Secrets.

Solution

1. ConfigMap

Languages
YAML
Golang

1. Secret

Languages
YAML
Golang