Pods "vmware-system-nsxop-controller-manager-*" are in "CrashLoopBackOff" status
search cancel

Pods "vmware-system-nsxop-controller-manager-*" are in "CrashLoopBackOff" status

book

Article ID: 419390

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service VMware vSphere ESXi

Issue/Introduction

  • When checking the current status of pods residing in the vmware-system-nsop namespace, the pods are observed in CrashLoopBackOff status:
    root@SV [ ~ ]# kubectl get pods -n vmware-system-nsop
    NAME                                                              READY   STATUS             RESTARTS           AGE
    vmware-system-nsop-controller-manager-##########-##### 0/1     CrashLoopBackOff   3001 (3m1s ago)   99d
    vmware-system-nsop-controller-manager-##########-#####            0/1     CrashLoopBackOff   3002 (4m2s ago)   99d
  • When 'describing' the respective pods above, it can be seen that its containers are killed due to reason OOMKilled:
    root@SV [ ~ ]# kubectl describe pod -n vmware-system-nsop vmware-system-nsop-controller-manager-##########-#####
    Name:             vmware-system-nsop-controller-manager-##########-#####
    [...]
    Containers:
    manager:
    [...]
      State:          Waiting
        Reason:       CrashLoopBackOff
      Last State:     Terminated
        Reason:       OOMKilled
        Exit Code:    137
    [...]

Cause

Exact cause is unknown and can have varying reasons (e.g., size of environment).

Resolution

There is currently no permanent resolution.

Contact Broadcom Support for further troubleshooting and analysis. The following workaround is primarily intended to remediate a current issue, not as a permanent fix.

Workaround

To stabilize the environment, the memory limit of the deployment can be increased. Before attempting this, it should be verified if there is enough memory available on all Supervisor nodes.

  1. Note current limits:
    root@SV [ ~ ]# kubectl describe deployments -n vmware-system-nsop vmware-system-nsop-controller-manager | grep -i limits -A2
      Limits:
        cpu:     100m
        memory:  300Mi
  2. Increase memory limit of deployment:
    root@SV [ ~ ]# kubectl -n vmware-system-nsop patch deployment vmware-system-nsop-controller-manager -p '{"spec":{"template":{"spec":{"containers":[{"name":"manager","resources":{"limits":{"memory":"500Mi"}}}]}}}}'
    deployment.apps/vmware-system-nsop-controller-manager patched
  3. Verify pods are again stable: (and remain stable by observing for several minutes)
    root@SV [ ~ ]# kubectl get pods -n vmware-system-nsop
    NAME                                                     READY   STATUS    RESTARTS   AGE
    vmware-system-nsop-controller-manager-##########-#####   1/1     Running   0          9s
    vmware-system-nsop-controller-manager-##########-#####   1/1     Running   0          6s