Log in to pod

There may be a need to login to a pod or the init container to obtain more diagnostic information than you get with kubernetes commands. First identify the pod you need to login.

Run the kubectl command to login to the kubernetes pod:
kubectl exec --stdin  --tty onedb-server-0 -- bash 

Once you’ve logged in to the pod/container, you can move around and view log files as you would on any Linux system.