Helm deploy

From markus41/claude · View interactive version

Helm deploy is an AI agent skill from the GitHub repository markus41/claude. Safe Helm deployment with image verification, cache busting, and rollback safety. Prevents deploying stale images.

How to use this skill

Skill file

Safe Helm Deploy

Deploy via Helm with image verification: $ARGUMENTS

Pre-Deploy Checklist

  1. Verify the image exists in the registry

```bash

# ACR

az acr repository show-tags --name <registry> --repository <image> --orderby time_desc --top 5

# Docker Hub

docker manifest inspect <registry>/<image>:<tag>

```

  1. Check what's currently running

```bash

helm list -n <namespace>

kubectl get pods -n <namespace> -o jsonpath='{range .items[]}{.metadata.name}{"\t"}{range .spec.containers[]}{.image}{"\n"}{end}{end}'

```

  1. Diff the changes before applying

```bash

helm diff upgrade <release> <chart> -n <namespace> \

--set image.tag=<new-tag> \

--set image.pullPolicy=Always \

-f values.yaml

```

Deploy Command Template

helm upgrade --install <release> <chart> \
  --namespace <namespace> \
  --set image.repository=<registry>/<image> \
  --set image.tag=<specific-tag> \
  --set image.pullPolicy=Always \
  --atomic \
  --wait \
  --timeout 5m \
  -f values.yaml

Post-Deploy Verification

# Verify new pods are running
kubectl rollout status deployment/<deployment> -n <namespace>

# Verify the correct image is running
kubectl get pods -n <namespace> -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{range .spec.containers[*]}{.image}{"\n"}{end}{end}'

# Check pod logs for startup errors
kubectl logs -l app=<app> -n <namespace> --tail=50

Rollback (if needed)

helm rollback <release> -n <namespace>
# Or to a specific revision:
helm history <release> -n <namespace>
helm rollback <release> <revision> -n <namespace>

Critical Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.