kubernetes-specialist
Skill này làm gì
Skill hướng dẫn agent AI triển khai và quản lý ứng dụng trên cụm Kubernetes. Skill dành cho kỹ sư DevOps và lập trình viên chạy container trong môi trường production.
Khi nào nên dùng
- ✓Khi bạn cần viết các triển khai, dịch vụ hoặc StatefulSet Kubernetes.
- ✓Khi một pod liên tục bị sập hoặc một workload cần tinh chỉnh giới hạn tài nguyên.
- ✓Khi bạn muốn cô lập mạng, quy tắc RBAC hoặc chart Helm được thiết lập.
Liên kết skill
https://github.com/Jeffallan/claude-skills/blob/main/skills/kubernetes-specialist/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Pod của tôi liên tục bị sập với OOMKilled. Tìm nguyên nhân và sửa giới hạn tài nguyên.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent xem xét workload và log của nó, thiết lập các manifest với giới hạn tài nguyên và kiểm tra sức khỏe, rồi áp dụng. Sau đó nó kiểm tra quá trình rollout và rollback bằng một lệnh nếu cần.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Kubernetes Specialist
When to Use This Skill
- Deploying workloads (Deployments, StatefulSets, DaemonSets, Jobs)
- Configuring networking (Services, Ingress, NetworkPolicies)
- Managing configuration (ConfigMaps, Secrets, environment variables)
- Setting up persistent storage (PV, PVC, StorageClasses)
- Creating Helm charts for application packaging
- Troubleshooting cluster and workload issues
- Implementing security best practices
Core Workflow
- Analyze requirements — Understand workload characteristics, scaling needs, security requirements
- Design architecture — Choose workload types, networking patterns, storage solutions
- Implement manifests — Create declarative YAML with proper resource limits, health checks
- Secure — Apply RBAC, NetworkPolicies, Pod Security Standards, least privilege
- Validate — Run
kubectl rollout status,kubectl get pods -w, andkubectl describe pod <name>to confirm health; roll back withkubectl rollout undoif needed
Reference Guide
Load detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| Workloads | references/workloads.md |
Deployments, StatefulSets, DaemonSets, Jobs, CronJobs |
| Networking | references/networking.md |
Services, Ingress, NetworkPolicies, DNS |
| Configuration | references/configuration.md |
ConfigMaps, Secrets, environment variables |
| Storage | references/storage.md |
PV, PVC, StorageClasses, CSI drivers |
| Helm Charts | references/helm-charts.md |
Chart structure, values, templates, hooks, testing, repositories |
| Troubleshooting | references/troubleshooting.md |
kubectl debug, logs, events, common issues |
| Custom Operators | references/custom-operators.md |
CRD, Operator SDK, controller-runtime, reconciliation |
| Service Mesh | references/service-mesh.md |
Istio, Linkerd, traffic management, mTLS, canary |
| GitOps | references/gitops.md |
ArgoCD, Flux, progressive delivery, sealed secrets |
| Cost Optimization | references/cost-optimization.md |
VPA, HPA tuning, spot instances, quotas, right-sizing |
| Multi-Cluster | references/multi-cluster.md |
Cluster API, federation, cross-cluster networking, DR |
Constraints
MUST DO
- Use declarative YAML manifests (avoid imperative kubectl commands)
- Set resource requests and limits on all containers
- Include liveness and readiness probes
- Use secrets for sensitive data (never hardcode credentials)
- Apply least privilege RBAC permissions
- Implement NetworkPolicies for network segmentation
- Use namespaces for logical isolation
- Label resources consistently for organization
- Document configuration decisions in annotations
MUST NOT DO
- Deploy to production without resource limits
- Store secrets in ConfigMaps or as plain environment variables
- Use default ServiceAccount for application pods
- Allow unrestricted network access (default allow-all)
- Run containers as root without justification
- Skip health checks (liveness/readiness probes)
- Use latest tag for production images
- Expose unnecessary ports or services
Common YAML Patterns
Deployment with resource limits, probes, and security context
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
namespace: my-namespace
labels:
app: my-app
version: "1.2.3"
spec:
replicas: 3
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
version: "1.2.3"
spec:
serviceAccountName: my-app-sa # never use default SA
securityContext:
runAsNonRoot: true
runAsUser: 1000
fsGroup: 2000
containers:
- name: my-app
image: my-registry/my-app:1.2.3 # never use latest
ports:
- containerPort: 8080
resources:
requests:
cpu: "100m"
memory: "128Mi"
limits:
cpu: "500m"
memory: "512Mi"
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /ready
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop: ["ALL
Câu hỏi thường gặp
Nó có bao quát Helm không?
Có. Nó bao quát chart Helm để đóng gói ứng dụng.
Nó kiểm tra triển khai thế nào?
Nó chạy kubectl rollout status và kiểm tra chi tiết pod, và có thể rollback bằng kubectl rollout undo.
Nó có bao quát bảo mật không?
Có. Nó bao quát chính sách RBAC, NetworkPolicy và Pod Security Standards.
Chi tiết
Mô tả gốc của tác giả
Use when deploying or managing Kubernetes workloads. Invoke to create deployment manifests, configure pod security policies, set up service accounts, define network isolation rules, debug pod crashes, analyze resource limits, inspect container logs, or right-size workloads. Use for Helm charts, RBAC policies, NetworkPolicies, storage configuration, performance optimization, GitOps pipelines, and multi-cluster management.
repo: Jeffallan/claude-skills
Độ phổ biến
- Sao GitHub
- 12k
- Vị trí xếp hạng
- #11433
- Giấy phép
- MIT
- Cập nhật
- 30/10/2026
Bình luận
- …
Thêm skill từ kho mã này
angular-architect
12kGiúp agent của bạn xây ứng dụng Angular 17 trở lên với standalone component, định tuyến lazy-loaded, state NgRx, mẫu RxJS và tinh chỉnh hiệu năng.
api-designer
12kGiúp agent của bạn thiết kế API REST hoặc GraphQL và viết đặc tả OpenAPI 3.1, với quy tắc cho tài nguyên, phân trang, định dạng lỗi và phiên bản.
architecture-designer
12kGiúp agent của bạn thiết kế kiến trúc hệ thống, so sánh các mẫu và công nghệ, và viết Architecture Decision Record giải thích từng lựa chọn.
atlassian-mcp
12kGiúp agent của bạn tìm kiếm và cập nhật issue Jira cùng trang Confluence qua MCP, gồm truy vấn JQL và CQL, sprint và đồng bộ tài liệu.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.