Loading...
Loading...
Kubernetes resource configuration and troubleshooting. Use when debugging pod failures, configuring probes and resource limits, setting up RBAC or NetworkPolicies, or resolving common Kubernetes errors like CrashLoopBackOff or ImagePullBackOff.
npx skill4agent add kontrolplane/skills kubernetes| Status | Common Causes | Debug Steps |
|---|---|---|
| CrashLoopBackOff | App crash, bad entrypoint, missing deps | |
| ImagePullBackOff | Wrong image/tag, no auth, registry down | Check image name, |
| Pending | No resources, node selector mismatch, PVC pending | |
| OOMKilled | Memory limit exceeded | Increase |
| Evicted | Node disk/memory pressure | Check node conditions, clean up |
| CreateContainerError | Bad securityContext, missing configmap/secret | |
requestslimitslivenessProbe:
initialDelaySeconds: 10 # Wait before first check
periodSeconds: 5 # Check interval
timeoutSeconds: 1 # Max wait for response
failureThreshold: 3 # Failures before actionsecurityContextspec:
securityContext:
runAsNonRoot: true # Pod default
containers:
- securityContext:
runAsUser: 1000 # Container overriderules:
- apiGroups: [""]
resources: ["pods", "pods/log"]
verbs: ["get", "list"]""appsnetworking.k8s.iorbac.authorization.k8s.iopodSelector: {}namespaceSelector: {}- ingress:
- from:
- podSelector: {matchLabels: {app: frontend}} # AND
namespaceSelector: {matchLabels: {env: prod}}
- from: # OR (separate rule)
- podSelector: {matchLabels: {app: monitoring}}