Delivery and operations · wrap-up
Cheat sheet & self-check
Every command from this section on one page.
Argo CD with Helm
argocd app manifests orders | What Argo CD rendered from the chart |
argocd app diff orders | Rendered chart vs live cluster |
argocd app get orders --show-params | Helm parameters and value files in use |
helm list -A | Shows nothing for Argo-managed apps: Argo CD does not create Helm releases |
OCI charts
helm package ./orders | Create orders-0.1.0.tgz |
helm push orders-0.1.0.tgz oci://registry.example.com/charts | Publish to an OCI registry |
helm pull oci://registry.example.com/charts/orders --version 0.1.0 | Fetch a specific version |
cosign sign registry.example.com/charts/orders@sha256:<digest> | Sign the chart artifact by digest |
cosign verify --key cosign.pub registry.example.com/charts/orders:0.1.0 | Verify before use |
helm template x <chart> | grep -E '^\s*image:' | sort -u | List images a chart will deploy (for mirroring) |
Diagnose
helm status orders -n shop | Current revision and status |
helm history orders -n shop | deployed / failed / pending-upgrade per revision |
kubectl get events -n shop --sort-by=.lastTimestamp | tail -20 | What Kubernetes refused or is waiting for |
kubectl get secret -n shop -l owner=helm,name=orders -L status,version | Revision Secrets and their status labels |
Recover
helm rollback orders <last-deployed-revision> -n shop | Return to the last good revision |
kubectl annotate <kind>/<name> -n shop meta.helm.sh/release-name=orders meta.helm.sh/release-namespace=shop | Adopt an existing object (plus label app.kubernetes.io/managed-by=Helm) |
Common chart anti-patterns
Everything configurable | Hundreds of values; nobody knows which matter; untestable |
Logic in templates | Deep if/else nesting instead of simple defaults |
Secrets in values | Passwords in Git and in every release revision |
Floating versions | Unpinned dependencies and latest image tags |
Missing defaults | No probes, resources, securityContext or PDB |
CRDs in templates/ | Uninstall deletes every custom resource |
Manual helm install in production | No review, no audit trail, drift |