kubernetes
Kubernetes deployment best practices including resource management, security, and observability.
$ インストール
git clone https://github.com/kprsnt2/MyLocalCLI /tmp/MyLocalCLI && cp -r /tmp/MyLocalCLI/src/skills/builtin/kubernetes ~/.claude/skills/MyLocalCLI// tip: Run this command in your terminal to install the skill
SKILL.md
name: kubernetes description: Kubernetes deployment best practices including resource management, security, and observability. globs: ["/k8s//.yaml", "/k8s//.yml", "/helm/", "**/kustomization.yaml"] priority: 70 tags: ["devops"]
Kubernetes Best Practices
Resource Management
- Always set resource requests/limits
- Use Horizontal Pod Autoscaler
- Set appropriate QoS classes
- Use PodDisruptionBudgets
Deployments
- Use rolling updates
- Set proper readiness/liveness probes
- Use init containers for setup
- Configure proper termination grace period
- Use anti-affinity for HA
ConfigMaps & Secrets
- Use ConfigMaps for config
- Use Secrets for sensitive data
- Mount as files, not env vars
- Use external secret managers
- Version configs with checksums
Networking
- Use Services for internal traffic
- Use Ingress for external traffic
- Implement NetworkPolicies
- Use service mesh for complex routing
Security
- Use RBAC
- Run as non-root
- Use PodSecurityPolicies/Standards
- Scan images in CI
- Use namespace isolation
Observability
- Implement structured logging
- Export Prometheus metrics
- Use distributed tracing
- Set up alerting
Repository

kprsnt2
Author
kprsnt2/MyLocalCLI/src/skills/builtin/kubernetes
0
Stars
0
Forks
Updated4h ago
Added1w ago