Complete the command to list all pods in the current Kubernetes namespace.
kubectl get [1]The kubectl get pods command lists all pods in the current namespace.
Complete the command to list all services in the 'default' namespace.
kubectl get [1] -n defaultThe kubectl get services -n default command lists all services in the 'default' namespace.
Fix the error in the command to list all deployments in all namespaces.
kubectl get [1] --all-namespacesThe correct resource to list deployments is 'deployments'. The flag --all-namespaces shows them across all namespaces.
Fill both blanks to list all pods with detailed information in the 'kube-system' namespace.
kubectl get [1] -n [2] -o wide
Use pods to list pods and kube-system to specify the namespace. The -o wide option shows detailed info.
Fill all three blanks to list all nodes with labels in the cluster.
kubectl get [1] -o [2] --show-labels=[3]
Use nodes to list cluster nodes, -o wide for detailed output, and --show-labels=true to display labels.