Gatekeeper-audit pod in CrashLoopBackOff due to OOMKilled status in TMC-SM managed clusters
book
Article ID: 429710
calendar_today
Updated On:
Products
VMware Tanzu Platform - Hub
VMware Tanzu Application Service
VMware Tanzu Platform - Cloud Foundry
VMware Tanzu Platform - Kubernetes
VMware Tanzu Platform Core
VMware Tanzu Platform - TAP
VMware Tanzu Platform - SaaS Components
Issue/Introduction
In a production environment managed by Tanzu Mission Control Self-Managed (TMC-SM), the gatekeeper-audit pod may enter a CrashLoopBackOff state.
Symptoms include:
- Repeated pod restarts.
- Liveness and Readiness probe failures.
- Pod status showing Terminated with reason OOMKilled.
Cause
The root cause is the default memory limit (typically 512Mi) being insufficient for the volume of resource metadata in the cluster.
Resolution
To resolve this issue, the memory allocation for the gatekeeper-audit deployment must be increased.
- Locate the gatekeeper-audit deployment in the gatekeeper-system namespace.
- Update the container resource limits from 512Mi to higher (depending on cluster size).
- Command-line example:
kubectl edit deployment gatekeeper-audit -n <TMC NAMESPACE>
- Monitor the pod using
kubectl get pods -n <TMC NAMESPACE> to ensure it reaches a Running state and the restart count stabilizes.
Feedback
thumb_up
Yes
thumb_down
No