LAB14a: Using Helm to Deploy

LAB500a: Using helm to deploy hello-world static website

Method 1: Helm Templating Approach

Helm uses templating + values files, allowing each environment (dev/prod) to override:

  • namespace

  • domain

  • SSL on/off

  • index.html content

  • name suffix

  • labels

Helm Directory Structure

helm-website/
├── Chart.yaml
├── values.yaml
├── values-dev.yaml
├── values-prod.yaml
├── dev-index.html
├── prod-index.html
└── templates/
    ├── configmap.yaml
    ├── deployment.yaml
    ├── service.yaml
    └── ingress.yaml

1. Chart.yaml


2. Base Values (values.yaml)


3. Dev Environment Values (values-dev.yaml)

dev-index.html

4. Prod Environment Values (values-prod.yaml)

prod-index.html

5. Templates

templates/configmap.yaml

Loads file-based content.

templates/deployment.yaml

templates/service.yaml

templates/ingress.yaml

How to Deploy (Helm)

DEV Deployment

Preview first:

Deploy:

Verify:


PROD Deployment

Preview:

Deploy:

Verify:

Update Release

DEV:

PROD:

Uninstall

Last updated