Kubernetes Patterns

Automate Kubernetes workload design and deployment with standardized YAML manifests and policies.

2|1|Updated Jul 22, 2024
One-click install
npx skills add https://github.com/mcgilly17/nix-configs --skill kubernetes-patterns-mcgilly17
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Kubernetes Patterns
Source: https://github.com/mcgilly17/nix-configs/tree/main/users/michael/common/ai-tools/claude-code/skills/kubernetes
Command: npx skills add https://github.com/mcgilly17/nix-configs --skill kubernetes-patterns-mcgilly17

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill standardizes and accelerates the design and deployment of Kubernetes workloads by applying proven patterns for deployments, services, config maps, secrets, and networking.

Core Features & Use Cases

  • Deployment patterns: robust replicas, probes, rolling updates, and safe rollouts.
  • Service patterns: internal ClusterIP, external LoadBalancer, and stable endpoints across services.
  • Configuration & Secrets: manage ConfigMaps and Secrets for apps without embedding sensitive data.
  • Networking & Security: Ingress setup, NetworkPolicies, and isolation for multi-service architectures.
  • Scaling & Reliability: HorizontalPodAutoscaler, resource requests/limits, and health checks to ensure resilience.

Quick Start

Apply the sample Kubernetes manifests to create a deployment and service, then extend with ingress and autoscaling as needed.

Frequently Asked Questions about Kubernetes Patterns

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

FAQPage Schema
How do I configure Kubernetes deployments with health checks and rolling updates?

Kubernetes deployments require configuring robust replicas, liveness probes, and rolling update policies to ensure safe rollouts. This Skill standardizes those deployment patterns by generating reproducible YAML manifests that enforce health checks and reliable update operations.

What is the best way to set up Kubernetes NetworkPolicies for multi-service isolation?

Kubernetes NetworkPolicies isolate multi-service architectures by controlling pod communication. This Skill applies policy-driven networking patterns to generate manifests that enforce ingress setup and network isolation, ensuring secure communication across typical microservice applications.

How do I manage ConfigMaps and Secrets in Kubernetes without embedding sensitive data?

Managing ConfigMaps and Secrets in Kubernetes involves decoupling configuration data from container images. This Skill generates manifest patterns that securely manage app configurations and secrets, preventing sensitive data from being embedded directly in deployments.

Can I use HorizontalPodAutoscaler with Kubernetes services for automatic scaling?

HorizontalPodAutoscaler works with Kubernetes services by automatically adjusting replica counts based on resource requests and limits. This Skill implements scaling and reliability patterns that configure autoscaling and resource limits to ensure application resilience under varying loads.

Does this approach support setting up Ingress for external LoadBalancer and ClusterIP services?

Ingress setup supports both external LoadBalancer and internal ClusterIP services by routing external traffic to stable endpoints. This Skill standardizes service and networking patterns to configure ingress routing alongside reliable internal and external service endpoints.

Why do my Kubernetes workloads need resource requests and limits defined?

Kubernetes workloads need resource requests and limits to ensure proper scheduling and prevent resource starvation. This Skill enforces these constraints within its deployment patterns, applying proven configurations that guarantee reliable operations and scalable applications.