Menu

1 / 2

A Minimal Helm Values Layout for Environments

DEV Community: azure·Nishant Rana·about 7 hours ago
#lGgtueTv
#devtoazure#devto#dev#values#yaml
Reading 0:00
15s threshold

Most Helm charts start with one values.yaml and grow a copy per environment. A few months later nobody knows which copy is the truth. Here is a layout that stays small.

The layout

chart/ values.yaml # defaults shared by every environment values-dev.yaml # only what differs in dev values-prod.yaml # only what differs in prod

Enter fullscreen mode

Exit fullscreen mode

Base values

replicaCount : 2 image : repository : myregistry.azurecr.io/api tag : "1.0.0" resources : requests : { cpu: 100m , memory: 128Mi } limits : { cpu: 500m , memory: 256Mi }

Enter fullscreen mode

Exit fullscreen mode

Per-environment overrides

# values-prod.yaml replicaCount : 4 resources : limits : { cpu: "1" , memory: 512Mi }

Enter fullscreen mode

Exit fullscreen mode

Deploy with the base first and the override last.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.