Guides Kubernetes configuration and deployment with production-ready manifests, HPA, PDB, and ingress setup. Activates on Kubernetes, K8s, kubectl, pod, deployment, ingress, helm, cluster, namespace, and crashlooping pods.
Ships in claude-skills-collection. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Organiser par dossier :
k8s/
base/
deployment.yaml
service.yaml
configmap.yaml
secret.yaml # ou ExternalSecrets / SealedSecret
ingress.yaml
overlays/
dev/kustomization.yaml
prod/kustomization.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
namespace: my-ns
spec:
replicas: 2
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
securityContext:
runAsNonRoot: true
runAsUser: 1000
containers:
- name: my-app
image: my-registry/my-app:1.2.3 # tag fixe, jamais latest
ports:
- containerPort: 8080
resources:
requests:
cpu: "100m"
memory: "128Mi"
limits:
cpu: "500m"
memory: "256Mi"
readinessProbe:
httpGet:
path: /health/ready
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /health/live
port: 8080
initialDelaySeconds: 15
periodSeconds: 20
env:
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: my-app-secret
key: db-password
HPA (charge CPU/mémoire)
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: my-app-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: my-app
minReplicas: 2
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 60
PodDisruptionBudget (toujours ajouter en prod)
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: my-app-pdb
spec:
minAvailable: 1
selector:
matchLabels:
app: my-app
| Besoin | Type Service |
|---|---|
| Interne cluster | ClusterIP |
| Debug local | NodePort (temp) |
| Exposition externe | LoadBalancer ou Ingress |
Ingress NGINX minimal
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-app-ingress
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "true"
spec:
ingressClassName: nginx
rules:
- host: app.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: my-app
port:
number: 80
tls:
- hosts:
- app.example.com
secretName: my-app-tls
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
namespace: my-ns
name: my-app-role
rules:
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["get", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: my-app-rolebinding
namespace: my-ns
subjects:
- kind: ServiceAccount
name: my-app-sa
namespace: my-ns
roleRef:
kind: Role
name: my-app-role
apiGroup: rbac.authorization.k8s.io
# Vérifier l'état du rollout
kubectl rollout status deployment/my-app -n my-ns
# Rollback rapide
kubectl rollout undo deployment/my-app -n my-ns
# Logs multi-pods avec label
kubectl logs -l app=my-app -n my-ns --tail=100 -f
# Describe pod crashant
kubectl describe pod -l app=my-app -n my-ns
# Exec dans un pod
kubectl exec -it deploy/my-app -n my-ns -- sh
# Top ressources
kubectl top pods -n my-ns --sort-by=memory
# Port-forward debug
kubectl port-forward svc/my-app 8080:80 -n my-ns
# Créer un chart
helm create my-app
# Installer avec values spécifiques
helm upgrade --install my-app ./my-app \
-n my-ns --create-namespace \
-f values-prod.yaml \
--set image.tag=1.2.3
# Diff avant apply (plugin helm-diff)
helm diff upgrade my-app ./my-app -f values-prod.yaml
| Anti-pattern | Risque | Correctif |
|---|---|---|
image: latest | rollouts non déterministes | Tag fixe ou digest SHA |
Pas de resources.limits | node starvation | Toujours définir requests + limits |
| Pas de probes | trafic vers pod non prêt | readiness + liveness sur chaque container |
| Secrets en clair dans le YAML | fuite dans git | ExternalSecrets ou SealedSecrets |
privileged: true | escalade de privilèges | runAsNonRoot: true + drop ALL capabilities |
| 1 seul replica en prod | SPOF | min 2 replicas + PDB |
| NetworkPolicy absente | mouvement latéral | default-deny + allow explicite |
kubectl apply manuel en prod | désynchronisation | GitOps : ArgoCD ou Flux |
kubectl apply --server-side) pour éviter les conflits de field managerstopologySpreadConstraints pour répartir les pods sur plusieurs zones AZminReadySeconds sur le Deployment pour absorber les faux positifs au démarrageWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/claude-skills-collection:dev-kubernetes-helperfrom claude-skills-collection
npx claudepluginhub vantaflow/claude-skills-collection --plugin claude-skills-collection348 skills in this plugin
/agent-a2a-protocol-guideGuide du protocole Agent-to-Agent (A2A) de Google pour l'interopérabilité entre agents IA — découverte, communication et collaboration inter-agents, avec exemples de code, critères de décision et pièges à éviter. Se déclenche avec "A2A", "agent-to-agent", "protocole A2A", "Google A2A", "interopérabilité agents". Also triggers on "agent-to-agent protocol", "agent interoperability", "connect two agents"./agent-agent-observabilityInstrumentation technique d'un agent IA — tracing distribué des appels LLM et outils, spans, métriques custom, corrélation de logs et dashboards de supervision. Pour les alertes et garde-fous de production, voir agent-monitoring-setup. Se déclenche avec "observabilité agent", "tracing agent", "LangSmith", "Langfuse", "OpenTelemetry agent", "spans LLM", "corréler les logs agent". Also triggers on "trace my agent", "LLM tracing", "agent spans"./agent-api-caller-subagentSous-agent spécialisé dans les appels API REST/GraphQL avec retry, auth et transformation de données. Se déclenche avec "sous-agent API", "API caller agent", "agent qui appelle une API", "REST agent", "HTTP agent", "API integration subagent", "external API agent". Also triggers on "subagent that calls an API", "API calling agent", "agent HTTP requests".Other plugins' skills for the same job