container-kubernetes-patterns

Installation
SKILL.md

Container and Kubernetes Patterns

Overview

Misconfigured probes cause unnecessary restarts. Missing resource limits allow noisy-neighbor OOMKills. Secrets baked into images become permanent liabilities. Use this guide during workload design and code review to catch Kubernetes configuration hazards before they reach production.

When to use: Designing new Kubernetes workloads; reviewing Deployment, StatefulSet, or Job manifests; debugging CrashLoopBackOff, OOMKilled, or Pending pods; hardening workload security posture; evaluating autoscaling strategies.

Quick Reference

Pattern Core Idea Primary Red Flag
Health Probes Signal container readiness and liveness to the control plane Missing readinessProbe, liveness probe too sensitive, no startupProbe for slow init
Resource Requests/Limits Requests for scheduling, limits for protection No requests (random scheduling), no limits (OOMKill risk), limits == requests (throttling)
HPA / KEDA / VPA Scale pods or nodes based on metrics Static replicas in production, HPA + VPA CPU conflict, no scale-down stabilization
PodDisruptionBudget Guarantee minimum availability during voluntary disruptions No PDB on critical workloads, SIGTERM not handled, preStop hook missing
RBAC Isolation Least-privilege ServiceAccount per workload Default service account, wildcard RBAC rules, cross-namespace token mounts
Configuration Injection ConfigMap and Secret via env or volume Secrets baked into images, plaintext secrets in ConfigMaps, no secret rotation path
Anti-Patterns Common failure modes CrashLoopBackOff, fat images, root containers, host-path mounts
Installs
7
GitHub Stars
4
First Seen
Apr 8, 2026
container-kubernetes-patterns — mickeyyaya/refactoring-skills