Exec into the Informix pod

To do some common administration tasks, you must be able to run the exec command on the Informix pod.

Procedure

  1. Use one of the following commands to find the namespace for your database deployment.
    kubectl get ns
    oc get projects
    
  2. Use the Kubernetes app.kubernetes.io/name label selector to find the Informix pod name:
    oc -n namespace get pods --selector app.kubernetes.io/name=informix-server-cr
  3. Run the exec command to start a bash in the Informix pod with the label ending with -server-0:
    oc -n namespace exec -it informix-<crid>-server-0 -- bash
    where <crid> is the numerical part of the CR Name informix-0124...