kubectl get in pods code example
Example 1: kubernetes get inside pod
kubectl exec -it <pod-name> -- sh
Example 2: how get pods in kuber
# Get Pods in all namespaces
kubectl get po -A
# Get pods in default namespace
kubectl get po
kubectl exec -it <pod-name> -- sh
# Get Pods in all namespaces
kubectl get po -A
# Get pods in default namespace
kubectl get po