kubernetes-patterns

Provide Kubernetes deployment patterns for manifests, resources, probes, and autoscaling.

Updated Sep 8, 2025
One-click install
npx skills add https://github.com/randalmurphal/claude-config --skill kubernetes-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kubernetes-patterns
Source: https://github.com/randalmurphal/claude-config/tree/main/skills/kubernetes-patterns
Command: npx skills add https://github.com/randalmurphal/claude-config --skill kubernetes-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Kubernetes deployment patterns including Deployments, Services, Ingress, ConfigMaps, Secrets, resource management, health checks, and horizontal pod autoscaling. Use when deploying to Kubernetes, managing containers, setting up services, or troubleshooting pod issues.

Core Features & Use Cases

  • Core Resources: Deployments, Services, Ingress, ConfigMaps, Secrets.
  • Health & Autoscaling: Liveness/readiness probes and HPA.
  • Kubectl Patterns: Common commands and best practices.

Quick Start

Use kubectl patterns to create and manage a simple web service deployment with health checks.

Frequently Asked Questions about kubernetes-patterns

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

FAQPage Schema
How do I deploy a containerized application to Kubernetes?

Kubernetes deployment uses Deployment manifests to manage containerized workloads on a cluster. Define replicas, container images, and resource requests/limits in your manifest, then apply it with kubectl to orchestrate pod creation and scaling across nodes.

What are liveness and readiness probes, and why do I need them?

Liveness and readiness probes are health checks that monitor pod health. Liveness probes restart failed containers; readiness probes remove unhealthy pods from traffic. Both prevent serving requests from broken instances and improve reliability in production environments.

How do I configure Services and Ingress to expose my Kubernetes application?

Services expose pods internally or externally using ClusterIP, NodePort, or LoadBalancer types. Ingress routes external HTTP/HTTPS traffic to Services based on hostnames and paths, providing a single entry point for managing external access to your cluster.

Can I use ConfigMaps and Secrets to manage application configuration in Kubernetes?

ConfigMaps store non-sensitive configuration data like environment variables; Secrets store sensitive data like credentials and tokens. Both inject configuration into pods at runtime without rebuilding images, enabling environment-specific deployments across development, staging, and production.

How do I troubleshoot pod issues and failed deployments in Kubernetes?

Use kubectl commands to inspect pod logs, describe resource states, and check events. Common troubleshooting targets image pull errors, resource exhaustion, health check failures, and scheduling issues—each requires examining pod status and events to diagnose root causes.

What's the best way to implement autoscaling for Kubernetes deployments?

Horizontal Pod Autoscaling (HPA) scales replica counts based on CPU, memory, or custom metrics. Define target metrics and min/max replicas in an HPA resource; the controller automatically adjusts pod count to meet demand, optimizing resource utilization and cost.