14.3 Viewing Pod Descriptions

Details about a pod can be viewed using the kubectl describe command:
kubectl describe pod <pod> -n <namespace>
For example:
kubectl describe pod oud-ds-rs-0 -n oudns
The output will look similar to the following:
Name:         oud-ds-rs-0
Namespace:    oudns
Priority:     0
Node:         <Worker Node>/100.105.18.114
Start Time:   <DATE>
Labels:       app.kubernetes.io/instance=oud-ds-rs
              app.kubernetes.io/name=oud-ds-rs
              controller-revision-hash=oud-ds-rs-5c8b8f67c9
              statefulset.kubernetes.io/pod-name=oud-ds-rs-0
Annotations:  <none>
Status:       Running
IP:           10.244.2.48
IPs:
  IP:           10.244.2.48
Controlled By:  StatefulSet/oud-ds-rs
Init Containers:
  mount-pv:
    Container ID:  cri-o://905af11c6f032f2dfa18b1e3956d7936cb7dd04d9d0df0cfcf8ed061e6930b52
    Image:         <location>/busybox
    Image ID:      <location>@sha256:2c8ed5408179ff4f53242a4bdd2706110ce000be239fe37a61be9c52f704c437
    Port:          <none>
    Host Port:     <none>
    Command:
      /bin/sh
      -c
    Args:
      ordinal=${OUD_INSTANCE_NAME##*-}; if [[ ${CLEANUP_BEFORE_START} == "true" ]]; then if [[ "$ordinal" != "0" ]]; then cd /u01/oracle; rm -fr /u01/oracle/user_projects/$(OUD_INSTANCE_NAME)/OUD; fi; fi
      if [[ ${CONFIGVOLUME_ENABLED} == "true" ]]; then if [[ "$ordinal" == "0" ]]; then cp "/mnt/baseOUD.props" "${CONFIGVOLUME_MOUNTPATH}/config-baseOUD.props"; else cp "/mnt/replOUD.props" "${CONFIGVOLUME_MOUNTPATH}/config-replOUD.props"; fi; fi;
    State:          Terminated
      Reason:       Completed
      Exit Code:    0
      Started:      <DATE>
      Finished:     <DATE>
    Ready:          True
    Restart Count:  0
    Environment:
      OUD_INSTANCE_NAME:       oud-ds-rs-0 (v1:metadata.name)
      CONFIGVOLUME_ENABLED:    false
      CONFIGVOLUME_MOUNTPATH:  /u01/oracle/config-input
      CLEANUP_BEFORE_START:    false
    Mounts:
      /u01/oracle/user_projects from oud-ds-rs-pv (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-65skp (ro)
Containers:
  oud-ds-rs:
    Container ID:   cri-o://d691b090dfbb1ee1b8606952497d80642424a82a2290071b325ea720098817c3
    Image:          container-registry.oracle.com/middleware/oud_cpu:14.1.2.1.0-jdk17-ol8-<YYMMDD>
    Image ID:       container-registry.oracle.com/middleware/oud_cpu@sha256:faca16dbbcda1985ff567eefe3f2ca7bae6cbbb7ebcd296fffb040ce61e9396a
    Ports:          1444/TCP, 1888/TCP, 1389/TCP, 1636/TCP, 1080/TCP, 1081/TCP, 1898/TCP
    Host Ports:     0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP
    State:          Running
      Started:      <DATE>
    Ready:          True
    Restart Count:  0
    Limits:
      cpu:     1
      memory:  4Gi
    Requests:
      cpu:      500m
      memory:   4Gi
    Liveness:   tcp-socket :ldap delay=300s timeout=30s period=60s #success=1 #failure=5
    Readiness:  exec [/u01/oracle/container-scripts/checkOUDInstance.sh] delay=300s timeout=30s period=60s #success=1 #failure=10
    Environment:
      instanceType:                   DS2RS_STS
      OUD_INSTANCE_NAME:              oud-ds-rs-0 (v1:metadata.name)
      MY_NODE_NAME:                    (v1:spec.nodeName)
      MY_POD_NAME:                    oud-ds-rs-0 (v1:metadata.name)
      sleepBeforeConfig:              3
      sourceHost:                     oud-ds-rs-0
      baseDN:                         dc=example,dc=com
      rootUserDN:                     <set to the key 'rootUserDN' in secret 'oud-ds-rs-creds'>        Optional: false
      rootUserPassword:               <set to the key 'rootUserPassword' in secret 'oud-ds-rs-creds'>  Optional: false
      adminUID:                       <set to the key 'adminUID' in secret 'oud-ds-rs-creds'>          Optional: false
      adminPassword:                  <set to the key 'adminPassword' in secret 'oud-ds-rs-creds'>     Optional: false
      bindDN1:                        <set to the key 'bindDN1' in secret 'oud-ds-rs-creds'>           Optional: false
      bindPassword1:                  <set to the key 'bindPassword1' in secret 'oud-ds-rs-creds'>     Optional: false
      bindDN2:                        <set to the key 'bindDN2' in secret 'oud-ds-rs-creds'>           Optional: false
      bindPassword2:                  <set to the key 'bindPassword2' in secret 'oud-ds-rs-creds'>     Optional: false
      sourceServerPorts:              oud-ds-rs-0:1444
      sourceAdminConnectorPort:       1444
      sourceReplicationPort:          1898
      sampleData:                     200
      adminConnectorPort:             1444
      httpAdminConnectorPort:         1888
      ldapPort:                       1389
      ldapsPort:                      1636
      httpPort:                       1080
      httpsPort:                      1081
      replicationPort:                1898
      dsreplication_1:                verify --hostname ${sourceHost} --port ${sourceAdminConnectorPort} --baseDN ${baseDN} --serverToRemove $(OUD_INSTANCE_NAME):${adminConnectorPort} --connectTimeout 600000 --readTimeout 600000
      dsreplication_2:                enable --host1 ${sourceHost} --port1 ${sourceAdminConnectorPort} --replicationPort1 ${sourceReplicationPort} --host2 $(OUD_INSTANCE_NAME) --port2 ${adminConnectorPort} --replicationPort2 ${replicationPort} --baseDN ${baseDN} --connectTimeout 600000 --readTimeout 600000
      dsreplication_3:                initialize --hostSource ${initializeFromHost} --portSource ${sourceAdminConnectorPort} --hostDestination $(OUD_INSTANCE_NAME) --portDestination ${adminConnectorPort} --baseDN ${baseDN} --connectTimeout 600000 --readTimeout 600000
      dsreplication_4:                verify --hostname $(OUD_INSTANCE_NAME) --port ${adminConnectorPort} --baseDN ${baseDN} --connectTimeout 600000 --readTimeout 600000
      post_dsreplication_dsconfig_1:  set-replication-domain-prop --domain-name ${baseDN} --set group-id:1
      post_dsreplication_dsconfig_2:  set-replication-server-prop --set group-id:1
    Mounts:
      /u01/oracle/user_projects from oud-ds-rs-pv (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-65skp (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             True
  ContainersReady   True
  PodScheduled      True
Volumes:
  oud-ds-rs-pv:
    Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:  oud-ds-rs-pvc
    ReadOnly:   false
  kube-api-access-65skp:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   Burstable
Node-Selectors:              <none>
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:                      <none>