Interview questions

Helm interview questions

7 questions, 7 with model answers. Every member practises all of them free.

Samples

3 of 7 questions.

How do you perform zero-downtime upgrades for a stateful workload using Helm 3?

Show the answer

Zero-downtime upgrades for stateful workloads (StatefulSets) require careful coordination:

  1. Use RollingUpdate strategy with maxUnavailable: 0 and partition in the StatefulSet update strategy to do canary-style rolling — only update pods above the partition index first.
  2. Pre-upgrade hooks (helm.sh/hook: pre-upgrade) run Jobs to quiesce the application, flush queues, or take a snapshot before the upgrade starts.
  3. PodDisruptionBudgets: ensure a PDB prevents Kubernetes from removing too many replicas simultaneously.
  4. Readiness probes: gate traffic cutover on the new pod being truly ready (not just running).
  5. --atomic flag: helm upgrade --atomic --timeout 5m automatically rolls back if any resource fails to become ready within the timeout.
  6. For databases, use init containers or a migration Job (with helm.sh/hook: pre-upgrade) to run schema migrations before pods restart.

Explain the folder structure of a basic Helm chart. What commands do you use to deploy with Helm?

Show the answer
mychart/
├── Chart.yaml          # chart metadata (name, version, appVersion)
├── values.yaml         # default configuration values
├── charts/             # chart dependencies (sub-charts)
├── templates/
│   ├── deployment.yaml
│   ├── service.yaml
│   ├── ingress.yaml
│   ├── _helpers.tpl    # named templates / helper functions
│   ├── NOTES.txt       # post-install usage notes
│   └── tests/
│       └── test-connection.yaml
└── .helmignore         # files to exclude from packaging

Key commands:

helm install <release> ./mychart -f values.yaml           # first install
helm upgrade <release> ./mychart -f values.yaml           # upgrade existing
helm upgrade --install <release> ./mychart                 # idempotent
helm uninstall <release>                                   # delete release
helm list -A                                               # list all releases
helm rollback <release> <revision>                        # rollback
helm template ./mychart -f values.yaml                    # render locally
helm lint ./mychart                                        # validate chart

What is email signing and Helm chart signing? Which tools do you use to sign Helm charts?

Show the answer

Helm chart signing ensures the integrity and authenticity of a chart package — consumers can verify the chart hasn't been tampered with and came from a trusted source.

How it works:

  1. Chart is packaged: helm package mychart/
  2. A .prov (provenance) file is generated alongside the .tgz: helm package --sign --key 'My Key' --keyring ~/.gnupg/secring.gpg mychart/
  3. The provenance file contains a SHA256 digest of the chart archive and a PGP signature.
  4. Consumers verify: helm verify mychart-1.0.0.tgz or helm install --verify.

Tools:

  • GnuPG (GPG): standard for key management and signing.
  • Cosign (Sigstore): keyless signing using OIDC tokens; increasingly adopted for OCI-based Helm charts.
  • Notation: CNCF project for signing OCI artifacts including Helm charts stored in OCI registries.

4 more in the member app, with practice sets and your own marks. Join free

More topics

Other interview topics.