kubectl config set-context --current --namespace=my-namespace When working with Kubernetes, a common task is to change…
How to ssh into Kubernetes pod
kubectl exec -it <podname> -- sh
To get a list of running pods in the current namespace:
kubectl get pods
To ssh into a specific container:
kubectl exec -it <podName> -c <containerName> -- sh
This Post Has 0 Comments