A 'kubectl describe..' of the tmc-auto-attach pod is showing below OOMKilled
State: Waiting
Reason: CrashLoopBackOff
Last State: Terminated
Reason: OOMKilled
Exit Code: 137
Started: ###, ## ### #### ##:##:## -####
Finished: ###, ## ### #### ##:##:## -####
Ready: False
Restart Count: 6
Limits:
cpu: 500m
memory: 256Mi
Requests:
cpu: 100m
memory: 128Mi
If after temporarily increasing the memory resource limits for tmc-auto-attach pod from 256Mi to 512Mi the cluster will update but eventually the resource was reverted back to memory resource limit 256Mi.
resources:
limits:
cpu: 200m
memory: 256Mi <<< current setting
requests:
cpu: 100m
memory: 128Mi
volumeMounts:
...
resources:
limits:
cpu: 200m
memory: 512Mi <<< new setting
requests:
cpu: 100m
memory: 128Mi
volumeMounts:
TMC SM 1.4.3
tmc-auto-attach manifest does not allow for changing of the resources limits or requests with any degree of ease.
If after changing the resources to a new memory limit for instance the memory setting will simply revert.
There is an active reconciliation loop of the Tanzu Mission Control (TMC) extension and package management controllers.
The components deployed in the svc-tmc-* namespaces are continuously monitored by their internal controllers. The controllers function is to ensure that the live state of the cluster's objects strictly matches the desired state defined in the source configuration.
Please find a rebuilt tmc-auto-attach.tar manifest image file attached.
Next follow the procedure provided below to update the memory limit for the tmc-auto-attach pod.
Environment:
* The credentials of the private harbor registry that hosts the TMC SM images (e.g., <harbor-host>/tmc-1-4-3).
* A Linux machine with Docker engine.
Download the attached tmc-auto-attach.tar manifest image file to a directory of your chose on your jumpbox where you manage TMC SM pods and Harbor.
Change the current directory to that of where the tmc-auto-attach.tar exist.
cd /path/to/working/dir
Prepare and push the manifest image to Harbor
Extract the tar and verify 512Mi is present
tar -xf tmcautoattach.tar
tar -xzf sha256-################################################################.tar.gz
Validate the memory size set
grep memory tmc-auto-attach.yaml-- expected output memory: 512Mi and memory: 100Mi
Set environment variables
export HARBOR_PROJECT=<harbor-host>/tmc-1-4-3
export IMG_PATH="${HARBOR_PROJECT}/tap-tmc-docker-virtual.usw1.packages.broadcom.com/extensions/tmc-auto-attach/supervisor/manifest"
export OLD_TAG="2025#############-####################################3cdb"
export TRIGGER_TAG="2026#############-####################################3cdb"
Build the Docker image FROM scratch and push
cat > Dockerfile << 'EOF'
FROM scratch
COPY tmc-auto-attach.yaml /tmc-auto-attach.yaml
EOF
Docker login, build, tag, push
docker login <harbor-host>
docker build -t ${IMG_PATH}:${TRIGGER_TAG} .
docker tag ${IMG_PATH}:${TRIGGER_TAG} ${IMG_PATH}:${OLD_TAG}
docker push ${IMG_PATH}:${TRIGGER_TAG}
docker push ${IMG_PATH}:${OLD_TAG} -- above commands may require sudo
Update the Extension Definition Database by connecting to the kubeconfig context to the TMC SM cluster
kubectl -n tmc-local exec -it postgres-postgresql-0 -- psql \
"$(kubectl -n tmc-local get secret cluster-agent-postgres-creds -ojsonpath='{.data.PGURL}' | base64 -d)" \
-c "UPDATE extension_definition SET objects=REPLACE(objects, 'memory: 256Mi', 'memory: 512Mi') WHERE name = 'tmc-auto-attach';"-- expected output UPDATE 3 or UPDATE 4.
Note - Perform the above UPDATE to database only, performing UPDATEs on the database could cause permenant damage to the environment if not used correctly.
Pause the PackageInstalls
kubectl -n tmc-local patch pkgi tanzu-mission-control --type merge -p '{"spec":{"paused":true}}'
kubectl -n tmc-local patch pkgi tmc-local-stack --type merge -p '{"spec":{"paused":true}}'
Trigger Manifest Update via ConfigMap
kubectl -n tmc-local edit cm olympus-dyncfg
Modify the tag to the TRIGGER_TAG:
FROM: tmc.eng.vmware.com/mandatory-extensions/tkgs-supervisor-cluster/tmc-auto-attach: extensions/tmc-auto-attach/supervisor/manifest:20251015070019980-abcc298063662b87aa3e484910197cc159953cdb
TO: tmc.eng.vmware.com/mandatory-extensions/tkgs-supervisor-cluster/tmc-auto-attach: extensions/tmc-auto-attach/supervisor/manifest:20260327124507813-abcc298063662b87aa3e484910197cc159953cdb
Restart Cluster Agent Services
kubectl -n tmc-local rollout restart deployment cluster-agent-service-server
Unpause the PackageInstalls
kubectl -n tmc-local patch pkgi tanzu-mission-control --type merge -p '{"spec":{"paused":null}}'
kubectl -n tmc-local patch pkgi tmc-local-stack --type merge -p '{"spec":{"paused":null}}'
Wait 5 to 10 minutes.
Verify on Supervisor Clusters by listing supervisor namespaces
kubectl get ns | grep svc-tmc
Check the memory limit in each namespace
kubectl -n <svc-tmc-namespace> get deployment tmc-auto-attach -o jsonpath='{.spec.template.spec.containers[0].resources.limits.memory}'-- expected output is 512Mi
Verify the extension CR
kubectl -n <svc-tmc-namespace> get extension tmc-auto-attach -o yaml | grep memory -- expected output must indicate 512Mi is applied successfully.