Deploy

Deploy applications to Kubernetes clusters. Use when releasing an application.

stbenjam Updated

File contents

Deploy

Handles deployment of containerized applications to Kubernetes using Helm charts and environment-specific value overrides.

When to Use This Skill

Use when deploying or updating services in staging or production environments.

Implementation Steps

Step 1: Validate

Run helm lint charts/ to verify the chart is syntactically valid. Check that all required values are defined:

  • image.repository and image.tag
  • replicaCount
  • resources.limits

Step 2: Build and Push

Build the container image and push to the registry:

docker build -t $REGISTRY/$APP:$TAG .
docker push $REGISTRY/$APP:$TAG

Step 3: Deploy

Run helm upgrade --install with the target namespace:

helm upgrade --install $APP charts/ \
  -f charts/values.yaml \
  -f charts/values-$ENV.yaml \
  -n $NAMESPACE --wait

Step 4: Verify

Check rollout status and health endpoints:

kubectl rollout status deployment/$APP -n $NAMESPACE
curl -sf https://$APP.$DOMAIN/health

stbenjam/skillsaw/tree/main/tests/fixtures/apm/clean/.apm/skills/deploy commit 34595ee564

Frequently asked questions

npx skillmds@latest add stbenjam/deploy