Answers for "kubernetes access pod terminal"

1

kubernetes get inside pod

kubectl exec -it <pod-name> -- sh
Posted by: Guest on March-09-2021
4

kubernetes /bin/bash

sudo kubectl -n <namespace> --context=<context-with-access> exec <pod-name> -it /bin/bash

ex:
sudo kubectl -n default --context=staging-devops exec microservice1-jd830k-880 -it /bin/bash
Posted by: Guest on March-02-2020
2

kubectl exec ls -lah

kubectl exec <pod_name> -- ls -la /
Posted by: Guest on March-11-2020

Browse Popular Code Answers by Language