Which kubectl command is used to list all pods in the current active namespace?
Which kubectl command is used to list all pods in the current active namespace?
The correct command to list all pods in the current active namespace is 'kubectl get pods'. This command retrieves and displays a list of pods along with details such as their status, age, and other relevant information. Other options like 'kubectl get nodes' and 'kubectl get services' list nodes and services respectively, while 'kubectl list pods' is not a valid kubectl command.
i think it's B since stated on kubernetes official website. https://kubernetes.io/docs/reference/kubectl/cheatsheet/
Option B Running this command will display a list of all pods running in the current active namespace along with their status, age, and other relevant information.
B. https://docs.vmware.com/en/VMware-vSphere/7.0/vsphere-esxi-vcenter-server-703-vsphere-with-tanzu-guide.pdf?hWord=N4IghgNiBcIOoAswBcAEBLAzq5CCmqAxgPYBOpehaADqcYXptssapixRgLZgDmjGAHaowqWsQBWlNMWG4CAJTy8syUgE9UAZTykAbugYgAvkA