Difficulty: Beginner
Estimated Time: 15 minutes

The are lot's of different ways to diff what is going to happen after helm upgrade or helm install.

You can use a plugin like helm diff on the one hand or you can run either helm template or helm upgrade --dry-run and pipe the result into kubectl diff or kubectl apply --dry-run. The results differ - so you should know what to expect from which combination.

Helm and Kubectl Diff

Step 1 of 6

Install k8s and helm

Install kubernetes with k3s via curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=v1.20.12+k3s1 sh -.

Check if it is properly running with kubectl get nodes (should answer host01 Ready).

Show kubernetes versions via kubectl version

Set kubeconfig to use k3s' kubeconfig export KUBECONFIG=/etc/rancher/k3s/k3s.yaml

Install helm via curl -Ss https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | DESIRED_VERSION=v3.6.3 bash.

Show helm version helm version

Install helm diff plugin helm plugin install https://github.com/databus23/helm-diff.