Feedback

Chat Icon

Helm in Practice

Designing, Deploying, and Operating Kubernetes Applications at Scale

Creating, Developing, and Testing a Helm Chart
53%

Updating the Values File

The default values.yaml file created by the helm create command under the todo-chart directory contains default values. We can leave some of them as is, but others can be updated to better reflect our application's requirements.

This file can be overridden during installation or upgrade using the -f or --values flag, but its main purpose is to provide the default configurations when no overrides are provided and to serve as documentation for the chart's configurable parameters.

Let's consider the following values.yaml file:

cat < $HOME/todo-chart/values.yaml
replicaCount: 1

image:
  repository: todo-app
  tag: "latest"
  pullPolicy: IfNotPresent

imagePullSecrets: []

nameOverride: ""
fullnameOverride: ""

serviceAccount:
  create: true
  automount: true
  annotations: {}
  name: ""

imageCredentials:
  create: false
  # registry: ""
  # username: ""
  # password: ""
  # secretName: ""

podAnnotations: {}
podLabels: {}

podSecurityContext: {}
  # fsGroup: 2000

securityContext: {}
  # runAsUser: 1000
  # runAsNonRoot: true
  # allowPrivilegeEscalation: false
  # capabilities:
  #   drop:
  #     - ALL

service:
  type: ClusterIP
  port: 5000

ingress:
  enabled: false

Helm in Practice

Designing, Deploying, and Operating Kubernetes Applications at Scale

Enroll now to unlock current content and receive all future updates for free. Your purchase supports the author and fuels the creation of more exciting content. Act fast, as the price will rise as the course nears completion!

Unlock now  $15.99$11.99

Hurry! This limited time offer ends in:

To redeem this offer, copy the coupon code below and apply it at checkout:

Learn More