kubernetes-deployment-patterns

Design Kubernetes deployment strategies for rolling updates, blue-green, and canary releases.

29|15|Updated Oct 17, 2025
One-click install
npx skills add https://github.com/NickCrew/claude-cortex --skill kubernetes-deployment-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kubernetes-deployment-patterns
Source: https://github.com/NickCrew/claude-cortex/tree/main/skills/kubernetes-deployment-patterns
Command: npx skills add https://github.com/NickCrew/claude-cortex --skill kubernetes-deployment-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides expert guidance on deploying to Kubernetes with production-grade patterns, reducing deployment complexity, preventing downtime, and enabling safer rollouts.

Core Features & Use Cases

  • Deployment strategies: Rolling updates, blue-green, canary releases, and Recreate strategies.
  • Workload patterns: Deployment, StatefulSet, DaemonSet, Job for different workloads.
  • Config & scale: ConfigMaps, Secrets, HPA, VPA, resource tuning, and health checks.
  • Use Case: Design a zero-downtime rollout for a stateless web app and a separate, safe upgrade path for a stateful service.

Quick Start

Use the skill to design and validate a canary deployment plan, including rollout steps and rollback criteria.

Frequently Asked Questions about kubernetes-deployment-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement zero-downtime Kubernetes deployments?

Zero-downtime Kubernetes deployments use rolling updates, blue-green, or canary strategies to shift traffic gradually while keeping services available. Rolling updates replace pods incrementally; blue-green maintains two parallel environments; canary routes a percentage of traffic to new versions before full promotion, enabling safe rollbacks if issues arise.

What's the difference between rolling updates, blue-green, and canary deployments in Kubernetes?

Rolling updates gradually replace old pods with new ones. Blue-green maintains two identical production environments and switches traffic between them instantly. Canary releases route a small traffic percentage to the new version first, monitoring metrics before expanding to all users. Each trades deployment speed, resource overhead, and rollback complexity differently.

How do I choose the right Kubernetes workload type for my application?

Deployment handles stateless applications with rolling updates; StatefulSet manages stateful services requiring stable identity and ordered scaling; DaemonSet runs one pod per node for logging or monitoring; Job executes batch tasks to completion. Match the workload type to whether your app maintains state and requires ordered or distributed execution.

Can I use health checks and autoscaling together in Kubernetes deployments?

Yes. Configure liveness and readiness probes to ensure only healthy pods receive traffic, then pair them with Horizontal Pod Autoscaler (HPA) or Vertical Pod Autoscaler (VPA) to scale based on metrics. Health checks prevent traffic to failing pods; autoscaling adjusts replica counts or resource requests based on demand, enabling safe high-availability deployments.

How do I safely roll back a Kubernetes deployment if something goes wrong?

Kubernetes tracks deployment revisions automatically. Use `kubectl rollout history` to view past versions, then `kubectl rollout undo` to revert to the previous revision or specify an exact revision number. Define rollback criteria upfront—monitor metrics like error rates or latency during canary phases—and trigger rollback before traffic reaches all replicas.

What's the best way to manage configuration and secrets across Kubernetes deployments?

Use ConfigMaps to store non-sensitive configuration data and Secrets for credentials, API keys, and certificates. Mount both as volumes or inject as environment variables into pods. Separate configuration from code, rotate secrets regularly, and use RBAC to limit access. This enables safe, version-controlled, environment-specific deployments.