askill
deploy

deploySafety 85Repository

Infrastructure deployment verification workflow. Use when: (1) Pushing infrastructure/config changes, (2) Deploying to Kubernetes, (3) User says "deploy", "rollout", "verify deployment", (4) After committing Helm/K8s/Hydra/Kratos YAML changes, (5) Need to check deployment status.

0 stars
1.2k downloads
Updated 2/18/2026

Package Files

Loading files...
SKILL.md

Deploy Verification Workflow

Pre-Deploy Checklist

  1. Validate configs before committing:

    • YAML syntax: python3 -c "import yaml; yaml.safe_load(open('FILE'))"
    • K8s manifests: kubectl apply --dry-run=client -f <file>
    • Helm: helm template <chart> | kubectl apply --dry-run=client -f -
    • Cross-check service-specific keys (don't mix Hydra/Kratos/other service configs)
  2. Build verification (if applicable):

    • go build ./... or make build
    • go vet ./...
    • Run tests: make test or go test ./...

Deploy Steps

  1. Stage and commit changes with conventional commit format
  2. Push to current branch
  3. Verify deployment:
# Check rollout status with timeout
kubectl rollout status deployment/<name> -n <namespace> --timeout=120s

# If flaky connectivity, retry with backoff
for i in 1 2 3; do
  kubectl rollout status deployment/<name> -n <namespace> --timeout=60s && break
  echo "Retry $i/3... waiting 15s"
  sleep 15
done

Post-Deploy Verification

# Check pods are healthy
kubectl get pods -n <namespace> -l app=<name>

# Check recent logs for errors
kubectl logs -n <namespace> deployment/<name> --tail=50 --since=2m

# Smoke test (if endpoint available)
curl -sf https://<endpoint>/health

Connectivity Failure Protocol

If kubectl is unreachable after 3 retries:

  1. Document in commit/PR: "UNVERIFIED: kubectl connectivity failed at $(date)"
  2. Create a verification script the user can run later:
    kubectl rollout status deployment/<name> -n <namespace>
    kubectl get pods -n <namespace> -l app=<name>
    
  3. Inform the user clearly that manual verification is needed

Common Pitfalls

IssueCauseFix
Wrong config keysCopied from wrong serviceValidate top-level keys match target service
ImagePullBackOffWrong image tag/registryCheck image exists: docker manifest inspect <image>
CrashLoopBackOffConfig or code errorCheck logs: kubectl logs <pod> --previous
Pending podsResource constraintsCheck events: kubectl describe pod <pod>

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

78/100Analyzed 2/24/2026

Well-structured deployment verification skill with clear triggers, actionable commands, and good safety considerations. Provides comprehensive pre-deploy, deploy, and post-deploy steps with retry logic. Somewhat tied to specific infrastructure (K8s/Hydra/Kratos) reducing universal reusability. Missing rollback procedures and deeper CI/CD integration details.

85
88
68
72
90

Metadata

Licenseunknown
Version-
Updated2/18/2026
Publisherzach-source

Tags

ci-cdgithub-actionstesting