Exec into OneDB Pod
There may be a need to login to the kuberneres pod to perform administration tasks. First
identify the pod you need to login
to.
kubectl get pods |grep onedb
onedb-operator-67f5d6cd9b-wxcg2 1/1 Running 0 42h
onedb-server-0 1/1 Running 0 42h
onedb-server-1 1/1 Running 0 42h
onedbcm-0 1/1 Running 0 42h
onedbcm-1 1/1 Running 0 42h
Run the kubectl command to login to the kubernetes
pod:
kubectl exec --stdin --tty onedb-server-0 -- bash
You will be logged in as user “informix” and your environment will be set for the OneDB Database server. Which can be verified with the onstat - command:
onstat -
HCL OneDB Server Version 2.0.1.0 -- On-Line (Prim)
-- Up 1 days 18:42:25 -- 793248 Kbytes
2021-12-01 17:37:54