How do I recover pods in CrashLoopBackOff state?
Purpose
When a container in a pod fails repeatedly, Kubernetes sets the pod to CrashLoopBackOff and increases the delay between restart attempts. An NSP pod in this state is listed with a STATUS of CrashLoopBackOff, as shown below:
namespace pod_name 0/1 CrashLoopBackOff 5 12m
Use this procedure to inspect container logs and recover when logs report exec format error, which indicates that the container image on the node hosting the pod is corrupted. Scaling the workload to zero replicas and removing the corrupted image from the node allows Kubernetes to pull a fresh image when the workload is scaled back up.
Other log messages may indicate configuration errors, missing secrets, or registry image-pull failures. For those cases, collect the logs and contact Nokia support before taking corrective action beyond log collection. If a registry or TLS certificate problem is suspected, see How do I update the Kubernetes registry TLS certificate?.
Note: To list all pods or view pod events, see How do I view the status of all Kubernetes pods? and How do I retrieve pod information?.