Roadmap › Kubernetes (K8s) & AKS › Module: Deploying and Operating
Lessons in this course (15)
13. Helm and GitOps
Intermediate★ Must knowLesson 13 of 15
bash
helm create shop-api # chart skeleton: Chart.yaml, values.yaml, templates/
helm install shop ./shop-api -n shop -f values-prod.yaml --set image.tag=1.4.2
helm upgrade --install shop ./shop-api -n shop -f values-prod.yaml
helm list -n shop
helm history shop -n shop
helm rollback shop 3 -n shop
helm template ./shop-api -f values-prod.yaml # render YAML locallyyaml
# templates/deployment.yaml (excerpt)
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
replicas: {{ .Values.replicaCount }}GitOps (Argo CD, Flux): the desired state lives in Git; an in-cluster agent pulls and applies changes and reverts drift. Deployments become pull requests; rollback = git revert.