Skip to content
Skills Library
DevOps & cloud · Automation

k8s-deploy

/k8s-deploy

Deploy and manage Kubernetes workloads with progressive delivery. Use for deployments, rollouts, blue-green, canary releases, scaling, and release management.

Licence
MIT
Last repository change
22.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
6
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 22.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Deploy and manage Kubernetes workloads with progressive delivery. Use for deployments, rollouts, blue-green, canary releases, scaling, and release management.

Original author description

Deploy and manage Kubernetes workloads with progressive delivery. Use for deployments, rollouts, blue-green, canary releases, scaling, and release management.

How it works

  1. When to Apply
  2. Priority Rules
  3. Quick Reference
  4. Standard Deployments
  5. Progressive Delivery
  6. Deployment Strategies
  7. Rollback Operations
  8. Health Verification
  9. Multi-Cluster Deployments
  10. Example Manifests
Original SKILL.md headings · 203 lines, 563 words
SKILL.md preview
---
name: k8s-deploy
description: Deploy and manage Kubernetes workloads with progressive delivery. Use for deployments, rollouts, blue-green, canary releases, scaling, and release management.
license: MIT-0
metadata:
  author: rohitg00
  version: "2.0.0"
  tools: 21
  category: workloads
---

# Kubernetes Deployment Workflows

Comprehensive deployment strategies using kubectl-mcp-server tools, including Argo Rollouts and Flagger for progressive delivery.

> Requires the `helm_dev`, `rollouts` toolsets: start kubectl-mcp-server with `--toolsets default,helm_dev,rollouts` (or `MCP_TOOLSETS=default,helm_dev,rollouts`).

## When to Apply

Use this skill when:
- User mentions: "deploy", "release", "rollout", "scale", "update", "upgrade"
- Operations: creating deployments, updating images, scaling replicas
- Strategies: canary, blue-green, rolling update, recreate
- Keywords: "new version", "push to production", "traffic shifting"

## Priority Rules

| Priority | Rule | Impact | Tools |
|----------|------|--------|-------|
| 1 | Preview with template before apply | CRITICAL | `helm_template` |
| 2 | Check existing state first | CRITICAL | `kubectl_get`, `helm_list` |
| 3 | Use progressive delivery for prod | HIGH | `rollout_*` tools |
| 4 | Verify health after deployment | HIGH | `kubectl_top`, `kubectl_get` |
| 5 | Keep rollback revision noted | MEDIUM | `helm_history` |
| 6 | Scale incrementally | LOW | `kubectl_scale` |

## Quick Reference

| Task | Tool | Example |
|------|------|---------|
| Deploy from manifest | `kubectl_apply` | `kubectl_apply(yaml, namespace)` |
| Deploy with Helm | `install_helm_chart` | `install_helm_chart(name, chart, namespace)` |
| Update image | `kubectl_patch` | `kubectl_patch(resource_type="deployment", name, ns, patch)` |
| Scale replicas | `kubectl_scale` | `kubectl_scale(resource_type="deployment", name, ns, replicas=5)` |
| Rollback | `kubectl_rollout` | `kubectl_rollout(action="undo", resource_type="deployment", name, ns)` |
| Canary promote | `promote_rollout` | `promote_rollout(name, ns)` |

## Standard Deployments

### Deploy from Manifest

```python
kubectl_apply(manifest_yaml, namespace)
```

### Deploy with Helm

```python
install_helm_chart(
    name="my-app",
    chart="bitnami/nginx",
    namespace="production",
    values={"replicaCount": 3}
)
```

### Scale Deployment

```python
kubectl_scale(resource_type="deployment", name, namespace, replicas=5)
```

### Rolling Update

```python
kubectl_patch(
    resource_type="deployment", name=name, namespace=namespace,
    patch={"spec": {"template": {"spec": {"containers": [{"name": "app", "image": "myapp:v2"}]}}}},
)

kubectl_rollout(action="status", resource_type="deployment", name=name, namespace=namespace)
```

## Progressive Delivery

### Argo Rollouts (Recommended)

For canary and blue-green deployments with analysis.

**List Rollouts**
```python
get_rollouts_list(namespace)
```

**Canary Promotion**
```python
get_rollout_status(name, namespace)

promote_rollout(name, namespace)
```

**Abort Bad Release**
```python
abort_rollout(name, namespace)
```

**Retry Failed Rollout**
```python
retry_rollout(name, namespace)
```

See [ROLLOUTS.md](ROLLOUTS.md) for detailed Argo Rollouts workflows.

### Flagger Canary

For service mesh-integrated canary releases:

```python
get_flagger_canaries(namespace)
get_flagger_canary(name, namespace)
```

## Deployment Strategies

| Strategy | Use Case | Tools |
|----------|----------|-------|
| Rolling | Standard updates | `kubectl_patch`, `kubectl_rollout` |
| Recreate | Stateful apps | Set strategy in manifest |
| Canary | Risk mitigation | `rollout_*` tools |
| Blue-Green | Zero downtime | `rollout_*` with blue-green |

See [references/STRATEGIES.md](references/STRATEGIES.md) for detailed strategy comparisons.

## Rollback Operations

### Native Kubernetes

```python
kubectl_rollout(action="history", resource_type="deployment", name=name, namespace=namespace)

kubectl_rollout(action="undo", resource_type="deployment", name=name, namespace=namespace)
```

### Helm Rollback

```python
helm_rollback(name, namespace, revision=1)
```

### Argo Rollouts Rollback

```python
abort_rollout(name, namespace)
```

## Health Verification

After deployment, verify health:

```python
kubectl_get(resource_type="pods", namespace, label_selector="app=myapp")

kubectl_top(name, namespace)

kubectl_get(resource_type="endpoints", namespace)
```

## Multi-Cluster Deployments

Deploy to specific clusters using context:

```python
install_helm_chart(
    name="app",
    chart="./charts/app",
    namespace="prod",
    context="production-us-east"
)

install_helm_chart(
    name="app",
    chart="./charts/app",
    namespace="prod",
    context="production-eu-west"
)
```

## Example Manifests

See [examples/](examples/) for ready-to-use deployment manifests:
- [examples/canary-rollout.yaml](examples/canary-rollout.yaml) - Argo Rollouts canary
- [examples/blue-green.yaml](examples/blue-green.yaml) - Blue-green deployment
- [examples/hpa-deployment.yaml](examples/hpa-deployment.yaml) - Deployment with HPA

## Prerequisites

- **Argo Rollouts**: Required for `rollout_*` tools
  ```bash
  kubectl create namespace argo-rollouts
  kubectl apply -n argo-rollouts -f https://github.com/argoproj/argo-rollouts/releases/latest/download/install.yaml
  ```
- **Flagger**: Required for `flagger_*` tools
  ```bash
  kubectl apply -k github.com/fluxcd/flagger/kustomize/kubernetes
  ```

## Related Skills

- [k8s-gitops](../k8s-gitops/SKILL.md) - GitOps deployments with Flux/ArgoCD
- [k8s-autoscaling](../k8s-autoscaling/SKILL.md) - Auto-scale deployments
- [k8s-rollouts](../k8s-rollouts/SKILL.md) - Advanced progressive delivery
- [k8s-helm](../k8s-helm/SKILL.md) - Helm chart operations
Files in this package (6)
  • ROLLOUTS.md 3 KB
  • SKILL.md 6 KB
  • examples/blue-green.yaml 2 KB
  • examples/canary-rollout.yaml 2 KB
  • examples/hpa-deployment.yaml 2 KB
  • references/STRATEGIES.md 4 KB

Versions

The database has no other skills named k8s-deploy.

Database snapshot: 13.11.2026 · package version fd7e1d97c009 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100blue-green-canary-deployments
    Designs and executes progressive delivery strategies — blue-green cutover, canary rollout, and traffic-shifted releases — with automated health checks and rollback triggers, typically on Kubernetes. Use when the user asks to "reduce deployment risk," "set up canary/blue-green…
  • 100k8s-rollouts
    Progressive delivery with Argo Rollouts and Flagger. Use when implementing canary deployments, blue-green deployments, or traffic shifting strategies.
  • 100progressive-delivery
    Use when deploying services with canary releases, blue-green deployments, or shadow traffic requiring progressive traffic shifting with rollback triggers
  • 100zero-downtime-deployments-blue-green-canary
    Use this skill when deploying software releases into production without service downtime using Blue-Green and Canary routing.
  • 100progressive-delivery
    Progressive delivery on Kubernetes — canary and blue-green deployments via Argo Rollouts, plus environment-to-environment promotion via Kargo. USE WHEN implementing canary releases, blue-green deployments, traffic shifting between revisions, metric-gated promotions,…
  • 100k8s
    Kubernetes and container orchestration skill. Helm charts, deployment strategies (rolling, canary, blue-green), pod health, resource limits, scaling. Triggers on: /godmode:k8s, "deploy to kubernetes", "helm chart", "pod crashing", "OOMKilled".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.