kubernetes
Network policy blocking pod communication
NetworkPolicy.*denied|connection timed out.*between pods
Fixes
- 1.Check NetworkPolicy rules: kubectl get networkpolicy -n namespace
- 2.Add an ingress/egress rule allowing traffic from the source pod's labels
- 3.Verify the CNI plugin supports NetworkPolicy (not all do)
- 4.Test connectivity: kubectl exec pod -- curl target-service:port
network-policynetworking
Related Errors
kubernetes4 fixes
Pod in CrashLoopBackOff state
CrashLoopBackOff
- •Check pod logs: kubectl logs pod-name --previous
- •Verify the container entrypoint/command is correct
kubernetes4 fixes
Cannot pull container image
ImagePullBackOff|ErrImagePull
- •Verify the image name and tag exist in the registry
- •Check imagePullSecrets is configured for private registries
kubernetes4 fixes
Container killed due to out-of-memory
OOMKilled
- •Increase memory limits in the pod spec: resources.limits.memory
- •Profile the application to find memory leaks