helm commands

Dipesh Majumdar
2 min readMay 24, 2023

--

  1. helm ls

For all namespaces —

helm ls -A

For a particular namespace

helm -n namespace ls

2. helm rollback and helm history

MacBook-Pro-van-Dipesh:Cellar dipeshmajumdar$ helm ls -A
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
aws-ebs-csi-driver kube-system 1 2023-03-30 12:31:37.074479 +0200 CEST deployed aws-ebs-csi-driver-1.2.4 1.1.1
runner1 runner1 7 2023-05-24 06:24:14.351437822 +0000 UTC deployed gitlab-runner-0.51.0 15.10.0

helm -n runner1 history runner1
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
1 Fri Mar 24 20:54:08 2023 superseded gitlab-runner-0.51.0 15.10.0 Install complete
2 Fri Mar 24 21:34:27 2023 superseded gitlab-runner-0.51.0 15.10.0 Upgrade complete
3 Fri Mar 24 21:38:21 2023 superseded gitlab-runner-0.51.0 15.10.0 Upgrade complete
4 Fri Mar 24 21:44:15 2023 superseded gitlab-runner-0.51.0 15.10.0 Upgrade complete
5 Fri Mar 24 21:54:36 2023 superseded gitlab-runner-0.51.0 15.10.0 Upgrade complete
6 Wed May 17 14:07:56 2023 superseded gitlab-runner-0.51.0 15.10.0 Upgrade complete
7 Wed May 24 06:24:14 2023 deployed gitlab-runner-0.51.0 15.10.0 Upgrade complete

helm -n runner1 rollback runner1 6
Rollback was a success! Happy Helming!

helm -n runner1 history runner1
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
1 Fri Mar 24 20:54:08 2023 superseded gitlab-runner-0.51.0 15.10.0 Install complete
2 Fri Mar 24 21:34:27 2023 superseded gitlab-runner-0.51.0 15.10.0 Upgrade complete
3 Fri Mar 24 21:38:21 2023 superseded gitlab-runner-0.51.0 15.10.0 Upgrade complete
4 Fri Mar 24 21:44:15 2023 superseded gitlab-runner-0.51.0 15.10.0 Upgrade complete
5 Fri Mar 24 21:54:36 2023 superseded gitlab-runner-0.51.0 15.10.0 Upgrade complete
6 Wed May 17 14:07:56 2023 superseded gitlab-runner-0.51.0 15.10.0 Upgrade complete
7 Wed May 24 06:24:14 2023 superseded gitlab-runner-0.51.0 15.10.0 Upgrade complete
8 Wed May 24 12:23:28 2023 deployed gitlab-runner-0.51.0 15.10.0 Rollback to 6

3. helm repo update and helm pull

helm repo update
helm pull gitlab/gitlab-runner

3. helm install

#!/bin/bash
NAME="runner1"
helm --namespace $NAME upgrade --install -f values.yaml $NAME helm-chart

*helm-chart is the folder where the chart resides. Typically this folder [gitlab-runner-0.51.0 in below example] has folder structure similar to the one shown in below screenshot

--

--

Dipesh Majumdar
Dipesh Majumdar

No responses yet