kubectl get pods

C++
# Get pods in default namespace
kubectl get pods

#Get Pods in my-namespace
kubectl get pods -n my-namespace

#Get Pods in all namespaces
kubectl get pods --all-namespaceskubectl get pods --all-namespaces -o wide --field-selector spec.nodeName=<node>
kubectl run <pod-name> --image=<image> --restart=Neverkubectl describe <type> <name> -o yaml
Source

Also in C++: