Files

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:

  1. Check logs: kubectl logs <pod>
  2. Check events: kubectl describe pod <pod>

ImagePullBackOff

The container image cannot be pulled.

Resolution:

  1. Verify image name and tag
  2. 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.