mychart3
Helm chartv1.0.0App 1.0.0Verified publisher
A Helm chart for Kubernetes
About this chart
mychart3 - Helm Upgrade with Chart Versions
Step-01: Introduction
- We are going to learn some additional flags for
helm search repocommand - We are going to Install and Upgrade Helm Releases using Chart Versions
- In addition, we are going to learn about Helm Rollback
Step-02: Search Helm Repo for mychart3
- mychart3 has 4 chart versions (0.1.0, 0.2.0, 0.3.0, 0.4.0)
- mychart3 Chart Versions -> App Version
- 0.1.0 -> 1.0.0
- 0.2.0 -> 2.0.0
- 0.3.0 -> 0.3.0
- 0.4.0 -> 0.4.0
# Search Helm Repo
helm search repo mychart3
Observation: Should display latest version of mychart3 from stacksimplify helm repo
# Search Helm Repo with --versions
helm search repo mychart3 --versions
Observation: Should display all versions of mychart3
# Search Helm Repo with --version
helm search repo mychart3 --version "CHART-VERSIONS"
helm search repo mychart3 --version "0.2.0"
Observation: Should display specified version of helm chart
Step-03: Install Helm Chart by specifying Chart Version
# Install Helm Chart by specifying Chart Version
helm install myapp101 stacksimplify/mychart3 --version "CHART-VERSION"
helm install myapp101 stacksimplify/mychart3 --version "0.1.0"
# List Helm Release
helm list myapp101
# List Kubernetes Resources Deployed as part of this Helm Release
helm status myapp101 --show-resources
# Access Application
http://localhost:31232
# View Pod logs
kubectl get pods
kubectl logs -f POD-NAME
Step-04: Helm Upgrade using Chart Version
# Helm Upgrade using Chart Version
helm upgrade myapp101 stacksimplify/mychart3 --version "0.2.0"
# List Helm Release
helm list
# List Kubernetes Resources Deployed as part of this Helm Release
helm status myapp101 --show-resources
# Access Application
http://localhost:31232
# List Release History
helm history myapp101
Step-05: Helm Upgrade without Chart Version
# Helm Upgrade using Chart Version
helm upgrade myapp101 stacksimplify/mychart3
# List Helm Release
helm list
# List Kubernetes Resources Deployed as part of this Helm Release
helm status myapp101 --show-resources
# Access Application
http://localhost:31232
Observation: Should take the latest release which is Appversion 4.0.0, Chart Version 0.4.0
# List Release History
helm history myapp101
Step-06: Helm Rollback
- Roll back a release to a previous revision or a specific revision
# Rollback to previous version
helm rollback RELEASE-NAME
helm rollback myapp101
# List Helm Release
helm list
# List Kubernetes Resources Deployed as part of this Helm Release
helm status myapp101 --show-resources
# Access Application
http://localhost:31232
Observation: Should see V2 version of Application (Chart Version 0.2.0, AppVersion 2.0.0)
# List Release History
helm history myapp101
Step-07: Helm Rollback to specific Revision
- Roll back a release to a previous revision or a specific revision
# Rollback to previous version
helm rollback RELEASE-NAME REVISION
helm rollback myapp101 1
# List Helm Release
helm list
# List Kubernetes Resources Deployed as part of this Helm Release
helm status myapp101 --show-resources
# Access Application
http://localhost:31232
Observation: Should see V1 version of Application (Chart Version 0.1.0, AppVersion 1.0.0)
# List Release History
helm history myapp101
Deploy mychart3 with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mychart3 on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmychart3 is pinned at v1.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply