To list available contexts: kubectl config get-contexts To show the current context: kubectl config current-context…
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