Kubernetes patterns

From cosmicstack-labs/mercury-agent-skills · View interactive version

Kubernetes patterns is an AI agent skill from the GitHub repository cosmicstack-labs/mercury-agent-skills. Pods, deployments, services, ingress, RBAC, autoscaling, and production cluster best practices

How to use this skill

Skill file

Kubernetes Patterns

Deploy and manage production Kubernetes clusters.

Core Objects

Workloads

| Object | Use Case | Scaling |

|--------|----------|---------|

| Deployment | Stateless apps | Replicas, HPA |

| StatefulSet | Stateful apps (DBs) | Stable network IDs |

| DaemonSet | Per-node agents (logging, monitoring) | Node count |

| Job/CronJob | Batch tasks, scheduled jobs | Completion |

Networking

Production Best Practices

Resource Management

resources:
  requests:
    cpu: 100m
    memory: 128Mi
  limits:
    cpu: 500m
    memory: 256Mi

Pod Anti-Affinity

Spread pods across nodes for HA.

Readiness & Liveness Probes

RBAC

Autoscaling

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.