kubectl get pods -n vmware-system-akoNAME READY STATUS RESTARTS AGEvmware-system-ako-ako-controller-manager-6c7d49b95-9k5gr 1/1 Running 0 52d
AKO Operator deployed in a TKGs cluster
AKO log level is controlled via the AviLoadBalancerConfig custom resource. To enable debug logging, update the logLevel field to DEBUG.
Important
Do not modify the avi-k8s-config ConfigMap directly.
Any manual changes to the ConfigMap will be overwritten by the AKO Operator.
Ensure you are authenticated and have access to patch the custom resources.
Update the logLevel to DEBUG using a patch operation.
kubectl patch AviLoadBalancerConfig <name> --type merge -p '{"spec":{"logLevel":"DEBUG"}}'
Replace <name> with the name of your AviLoadBalancerConfig resource.
Note: No pod restart is required.
Confirm that the log level has been updated successfully.
kubectl get AviLoadBalancerConfig -o yaml | grep -i log
Expected output:
Once the issue is reproduced collect the Pod logs:
kubectl logs vmware-system-ako-ako-controller-manager-6c7d49b95-9k5gr -n vmware-system-ako --all-containers=true > /home/akologs.txt