Environment
- VMWare Carbon Black Container Essentials: All Versions
Objective
Display Resource (CPU/Memory) usage of pods.
Resolution
- Show metrics for all pods in the default namespace:
kubectl top pod
- Show metrics for all pods in the given namespace (replace NAMESPACE with octarine-dataplane, for example):
kubectl top pod --namespace=NAMESPACE
- Show metrics for all pods and namespaces:
kubectl top pod -A