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