You want CPU and memory usage per container (not per Pod) for web-1. Metrics Server is installed. Which command?
- A.
kubectl top container web-1 - B.
kubectl top pod web-1 --containers - C.
kubectl describe pod web-1 --stats - D.
kubectl logs web-1 --metrics
Show answer and explanation
Answer: B
kubectl top pod --containers breaks usage down by container.
top container,describe --statsandlogs --metricsdo not exist.