768 B
768 B
kubectl Reference
Introduction to kubectl commands.
Common Issues
Overview of common issues.
CrashLoopBackOff
A pod is in CrashLoopBackOff when it repeatedly crashes.
Symptoms:
- Pod status shows CrashLoopBackOff
- Container restarts frequently
Resolution:
- Check logs:
kubectl logs <pod> - Check events:
kubectl describe pod <pod>
ImagePullBackOff
The container image cannot be pulled.
Resolution:
- Verify image name and tag
- Check registry credentials
Best Practices
Resource Limits
Always set resource limits on containers.
Health Checks
Configure liveness and readiness probes.
Liveness Probes
Check if container is running.
Readiness Probes
Check if container is ready to serve traffic.