Skip to main content

kubernetes-patterns

Pods, deployments, services, ingress, RBAC, autoscaling, and production cluster best practices

소스 정보

저장소
cosmicstack-labs/mercury-agent-skills
최근 소스 활동
2026년 5월 10일 06:29
감지된 SKILL.md 언어
영어
스타
482
포크
65

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
kubernetes-patterns
description
Pods, deployments, services, ingress, RBAC, autoscaling, and production cluster best practices
metadata
{"author":"cosmicstack-labs","version":"1.0.0","category":"devops","tags":["kubernetes","k8s","devops","containers","orchestration"]}
# 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 - **Service**: Stable endpoint for pods (ClusterIP, NodePort, LoadBalancer) - **Ingress**: HTTP routing, TLS termination, path-based routing - **Network Policies**: Pod-level firewall rules ## Production Best Practices ### Resource Management ```yaml resources: requests: cpu: 100m memory: 128Mi limits: cpu: 500m memory: 256Mi ``` - Always set requests AND limits - Use LimitRange for namespace defaults - Use ResourceQuota for namespace caps ### Pod Anti-Affinity Spread pods across nodes for HA. ### Readiness & Liveness Probes - Readiness: traffic starts flowing - Liveness: pod gets restarted - Startup: for slow-starting containers ## RBAC - Least-privilege service accounts per app - Namespace-scoped roles (not cluster-wide) - Regularly audit permissions - Use groups, not individual users ## Autoscaling - HPA: scale by CPU/memory or custom metrics - VPA: adjust resource requests automatically - Cluster Autoscaler: add/remove nodes - KEDA: event-driven scaling (SQS queue depth, etc.)
GitHub에서 보기