miércoles, 25 de septiembre de 2024

Kubernetes, access to a pod/container

Just to remember, for some pods it is very easy the access. Just check the current pods:

[ec2-user@ip-172-31-80-45 nginx-with-volume]$ kubectl get pods

NAME       READY   STATUS    RESTARTS   AGE

nginx-01   1/1     Running   0          8s


Connect to the pod specifying the pod name

[ec2-user@ip-172-31-80-45 nginx-with-volume]$ kubectl exec --stdin --tty nginx-01 -- /bin/sh



No hay comentarios:

Publicar un comentario