teluzia.Cloud Engineer · Day 123
CHAPTER 18 · AMAZON EKS AND HELM

Application configuration and releases

4–5 hours including independent practice3 topics
LET’S MAKE THIS SIMPLE

What you’re learning today

A Helm release is a versioned installation recipe whose image, settings, and dependencies must stay compatible as it changes. Chart defaults can be overridden with explicit value files or flags. Keep environment configuration in reviewable files and protect sensitive values because Helm release metadata and rendered manifests can expose them. Use the intended secret-management approach rather than assume every value is private. helm upgrade --install supports creation or update of a named release. Namespace, chart version, image identity, and values define the intended result. Waiting and timeout flags provide useful deployment signals but do not replace meaningful application acceptance checks or awareness of hook behavior.

Think of it this way

A Helm release is a versioned installation recipe whose image, settings, and dependencies must stay compatible as it changes.

TOPIC 01 / 03Step by step

Configuration overrides

Chart defaults can be overridden with explicit value files or flags. Keep environment configuration in reviewable files and protect sensitive values because Helm release metadata and rendered manifests can expose them. Use the intended secret-management approach rather than assume every value is private. For example, values-dev.yaml sets replicaCount 1 while values-prod.yaml sets 3; neither contains a real database password.

WORKED EXAMPLE
values-dev.yaml sets replicaCount 1 while values-prod.yaml sets 3; neither contains a real database password.

The same chart serves development and production through separate reviewed value files. Development chooses one replica and a local entry path; production chooses appropriate capacity and its actual ingress settings. Rendering shows the resulting differences before installation. Avoid storing real credentials in values because rendered output and release metadata can expose them.

An override replaces or supplements a default input. A value file records environment configuration. A release dependency is configuration the runtime requires, such as a Secret or external endpoint. Describe precedence and keep command-line changes recorded instead of relying on shell history. Too many undocumented overrides make an environment impossible to reproduce. Share meaningful defaults while validating intentional differences. A reused chart does not imply both environments exercise identical topology or availability behavior. Document which production requirements need separate testing rather than assuming a smaller development installation proves every operational property.

Why this matters

values-dev.yaml sets replicaCount 1 while values-prod.yaml sets 3; neither contains a real database password.

A common trap

Do not overlook this operational distinction: Use the intended secret-management approach rather than assume every value is private.

Read all topics in this lesson

A complete reference to revisit alongside the guided steps above.

Configuration overrides

Chart defaults can be overridden with explicit value files or flags. Keep environment configuration in reviewable files and protect sensitive values because Helm release metadata and rendered manifests can expose them. Use the intended secret-management approach rather than assume every value is private. For example, values-dev.yaml sets replicaCount 1 while values-prod.yaml sets 3; neither contains a real database password.

WORKED EXAMPLE
values-dev.yaml sets replicaCount 1 while values-prod.yaml sets 3; neither contains a real database password.

The same chart serves development and production through separate reviewed value files. Development chooses one replica and a local entry path; production chooses appropriate capacity and its actual ingress settings. Rendering shows the resulting differences before installation. Avoid storing real credentials in values because rendered output and release metadata can expose them.

An override replaces or supplements a default input. A value file records environment configuration. A release dependency is configuration the runtime requires, such as a Secret or external endpoint. Describe precedence and keep command-line changes recorded instead of relying on shell history. Too many undocumented overrides make an environment impossible to reproduce. Share meaningful defaults while validating intentional differences. A reused chart does not imply both environments exercise identical topology or availability behavior. Document which production requirements need separate testing rather than assuming a smaller development installation proves every operational property.

Why this matters

values-dev.yaml sets replicaCount 1 while values-prod.yaml sets 3; neither contains a real database password.

A common trap

Do not overlook this operational distinction: Use the intended secret-management approach rather than assume every value is private.

Install, upgrade, and readiness

helm upgrade --install supports creation or update of a named release. Namespace, chart version, image identity, and values define the intended result. Waiting and timeout flags provide useful deployment signals but do not replace meaningful application acceptance checks or awareness of hook behavior. For example, a local release is upgraded with a pinned image choice and verified by kubectl rollout status plus an HTTP request.

WORKED EXAMPLE
A local release is upgraded with a pinned image choice and verified by kubectl rollout status plus an HTTP request.

helm upgrade --install chooses whether a named release must be created or updated. It renders the selected chart and inputs, submits supported objects, and can wait for selected readiness conditions within a timeout. Afterward, run application acceptance checks through the intended traffic path, because object readiness does not prove every dependency or transaction works.

Install creates a release. Upgrade changes an existing release. Waiting observes selected resource outcomes under Helm's supported behavior. Hooks can add lifecycle actions with different cleanup or ordering implications, so inspect them rather than assume every action is an ordinary Deployment update. Use explicit namespace, version, values, and image identity. A timeout can leave partial changes requiring investigation. Read release status, workload events, and actual manifests before another attempt. Treat a successful command as deployment orchestration evidence and a representative response as separate evidence of useful behavior.

Why this matters

A local release is upgraded with a pinned image choice and verified by kubectl rollout status plus an HTTP request.

A common trap

Do not overlook this operational distinction: Waiting and timeout flags provide useful deployment signals but do not replace meaningful application acceptance checks or awareness of hook behavior.

History, rollback, and stateful changes

Helm history and rollback help recover release manifests to a selected revision. Rollback may not reverse external data changes or every hook effect. Preserve compatible configuration and data migration strategies, and inspect release history without leaking sensitive stored values. For example, rolling back a Deployment template does not automatically undo a database migration performed by a previous release hook.

WORKED EXAMPLE
Rolling back a Deployment template does not automatically undo a database migration performed by a previous release hook.

A new chart revision applies a schema migration through a hook, then its application image fails. Helm history identifies a previous release, but rollback may restore manifests without undoing the database change. Determine whether the old application and configuration remain compatible before selecting that recovery path, and verify behavior afterward.

History records release revisions. Rollback selects an earlier release configuration according to Helm's behavior. A hook executes lifecycle-specific work and can have external effects beyond normal manifest restoration. Preserve old artifact identities and required value files. Mutable image tags undermine reliable reproduction even when the release revision is known. Decide migration compatibility and data recovery in advance, not after the failed release. Helm provides useful packaging and history, but does not make application updates a universal atomic transaction. Record retained changes and use a forward fix when reverting would threaten data integrity or cannot restore the required behavior.

Why this matters

Rolling back a Deployment template does not automatically undo a database migration performed by a previous release hook.

A common trap

Do not overlook this operational distinction: Preserve compatible configuration and data migration strategies, and inspect release history without leaking sensitive stored values.

KEEP THESE WITH YOU

Today’s takeaways

Configuration overrides: Chart defaults can be overridden with explicit value files or flags. Keep environment configuration in reviewable files and protect sensitive values because Helm release metadata and rendered manifests can expose them. Use the intended secret-management approach rather than assume every value is private.

Install, upgrade, and readiness: helm upgrade --install supports creation or update of a named release. Namespace, chart version, image identity, and values define the intended result. Waiting and timeout flags provide useful deployment signals but do not replace meaningful application acceptance checks or awareness of hook behavior.

History, rollback, and stateful changes: Helm history and rollback help recover release manifests to a selected revision. Rollback may not reverse external data changes or every hook effect. Preserve compatible configuration and data migration strategies, and inspect release history without leaking sensitive stored values.

CLOSE THE LOOP

Ready to complete this day?

Verify the practical steps and pass the knowledge check (at least two thirds correct).

Lab steps verifiedKnowledge check passed