DEV Community

Agik Setiawan
Agik Setiawan

Posted on

Access container in Kubernetes with CLI

First we must get list of pod with command

kubectl get pod
Enter fullscreen mode Exit fullscreen mode

for access container we use pod name like bellow

kubectl exec --stdin --tty POD_NAME -- /bin/bash
Enter fullscreen mode Exit fullscreen mode

Top comments (0)