Thursday, July 22, 2021

To access a pod console

 kubectl exec -it <pod_name> -- bash



If multiple containers are there in a pod:


kubectl exec -it <pod_name> -c <container_name> -- bash


you can replace bash with any command to execute.


Reference

No comments:

Post a Comment