Environment
- VMWare Carbon Black Container Essentials: All Versions
Objective
How to collect diagnostics for CB Container Essential resources.
Resolution
- SSH into Kubernetes cluster.
- Run the following command:
kubectl logs -n cbcontainers-dataplane -l control-plane=operator --tail=-1 > operator-logs_$(date +%b_%d_%Y_%H_%M_%S.txt)
- Run the following which generates logs for each component in the dataplane.
kubectl logs -l 'app.kubernetes.io/name in (cbcontainers-hardening-enforcer, cbcontainers-hardening-state-reporter, cbcontainers-image-scanning-reporter, cbcontainers-monitor, cbcontainers-node-agent, cbcontainers-runtime-resolver)' --all-containers --prefix
- Transfer the operator-logs*.txt file and attach to the support case. If the file is large, use CBVault.
Additional Notes
- If the namespace changes name the -n value may change
- If the label on the operator changes the -l value may change
Related Content