Viewing the Status and Pod Details

If the service requires extra pods, the AMF creates, and deploys those pods.

You can perform the following:

  • View the list of pods that are participating in your deployment through the AMF Ops Center.

  • Run the kubectl command from the Master node to manage the Kubernetes resources.

To view the comprehensive pod details, use the following command:

  • kubectl get pods -n amf_namespace pod_name -o yaml

    The pod details are available in YAML format. The output of this command results in the following information:

    • The IP address of the host where the pod is deployed.

    • The service and application that is running on the pod.

    • The ID and name of the container within the pod

    • The IP address of the pod

    • The current state and phase in which the pod is.

    • The start time from which the pod is in the current state.

    Sample Output:

    kubectl get pod -n amf-ins1 cache-pod-0 -o yaml
    apiVersion: v1
    kind: Pod
    metadata:
      annotations:
        cni.projectcalico.org/podIP: 209.165.201.3/32
        cni.projectcalico.org/podIPs: 209.165.201.3/32,4141:4141::d32/128
        prometheus.io/port: "10080"
        prometheus.io/scrape: "true"
        sidecar.istio.io/inject: "false"
      creationTimestamp: "2021-10-16T18:03:32Z"
      generateName: cache-pod-
      labels:
        component: cache-pod
        controller-revision-hash: cache-pod-56dc45d7df
        release: amf-ins1-infra-charts
        statefulset.kubernetes.io/pod-name: cache-pod-0
      name: cache-pod-0
      namespace: amf-ins1
      ownerReferences:
      - apiVersion: apps/v1
        blockOwnerDeletion: true
        controller: true
        kind: StatefulSet
        name: cache-pod
        uid: 18dfdb38-ca20-47ab-b525-770be9ace57c
      resourceVersion: "5770907"
      uid: 088c4f8d-143b-4096-ad03-f95409c16db9
    spec:
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
            - matchExpressions:
              - key: smi.cisco.com/node-type-2
                operator: In
                values:
                - protocol
    .
    .
    .
    status:
      conditions:
      - lastProbeTime: null
        lastTransitionTime: "2021-10-16T18:03:47Z"
        status: "True"
        type: Initialized
      - lastProbeTime: null
        lastTransitionTime: "2021-10-16T18:04:52Z"
        status: "True"
        type: Ready
      - lastProbeTime: null
        lastTransitionTime: "2021-10-16T18:04:52Z"
        status: "True"
        type: ContainersReady
      - lastProbeTime: null
        lastTransitionTime: "2021-10-16T18:03:32Z"
        status: "True"
        type: PodScheduled
      containerStatuses:
      - containerID: docker://68f5c45ed73ee311a05a32be4fadca0cb9fda0742a01d303fe5115dfa7573a48
        image: docker.209.165.201.29.nip.io/amf.2021.04.m0.i80/mobile-cnat-app-infra/cache-pod/main/
    cache_pod:0.1.0-32e359a
        imageID: docker-pullable://docker.209.165.201.29.nip.io/amf.2021.04.m0.i80/mobile-cnat-app-infra/
    cache-pod/main/cache_pod@sha256:d2c82e1af506cf92c04d93f40ef8ca1dfcf830d457bfeabd4dc8aba7b63ce894
        lastState: {}
        name: cache-pod
        ready: true
        restartCount: 0
        started: true
        state:
          running:
            startedAt: "2021-10-16T18:03:49Z"
      hostIP: 209.165.201.29
      phase: Running
      podIP: 209.165.201.3
      podIPs:
      - ip: 209.165.201.3
      - ip: 4141:4141::d32
      qosClass: Burstable
      startTime: "2021-10-16T18:03:47Z"		

To view the summary of the pod details, use the following command.

  • kubectl get pods -n amf_namespace -o wide

    Sample Output:

    kubectl get pod -n amf-ins1 -o wide
    NAME                                                   READY   STATUS    RESTARTS   AGE   IP               NODE                      NOMINATED NODE   READINESS GATES
    amf-ins1-amf-gosctp-lb-0                               1/1     Running   0          37h   209.165.201.29   amf-cndp-b19-4-master-1   <none>           <none>
    amf-ins1-amf-gosctp-lb-1                               1/1     Running   0          37h   209.165.201.30   amf-cndp-b19-4-master-2   <none>           <none>
    amf-ins1-amf-protocol-ep-0                             2/2     Running   1          37h   209.165.201.8    amf-cndp-b19-4-master-1   <none>           <none>
    amf-ins1-amf-protocol-ep-1                             2/2     Running   1          37h   209.165.201.16   amf-cndp-b19-4-master-2   <none>           <none>
    amf-ins1-amf-rest-ep-0                                 2/2     Running   1          37h   209.165.201.15   amf-cndp-b19-4-master-1   <none>           <none>
    amf-ins1-amf-rest-ep-1                                 2/2     Running   1          37h   209.165.201.19   amf-cndp-b19-4-master-2   <none>           <none>
    amf-service-n0-0                                       2/2     Running   1          37h   209.165.201.7    amf-cndp-b19-4-master-1   <none>           <none>
    amf-service-n0-1                                       2/2     Running   1          37h   209.165.201.2    amf-cndp-b19-4-master-1   <none>           <none>
    amf-service-n1-0                                       2/2     Running   0          37h   209.165.201.27   amf-cndp-b19-4-master-3   <none>           <none>
    amf-service-n1-1                                       2/2     Running   1          37h   209.165.201.22   amf-cndp-b19-4-master-3   <none>           <none>
    base-entitlement-amf-6cf5fb484d-4w7cg                  1/1     Running   0          37h   209.165.201.25   amf-cndp-b19-4-master-3   <none>           <none>
    cache-pod-0                                            1/1     Running   0          37h   209.165.201.3    amf-cndp-b19-4-master-1   <none>           <none>
    cache-pod-1                                            1/1     Running   0          36h   209.165.201.20   amf-cndp-b19-4-master-2   <none>           <none>
    documentation-556f8dcc5c-pnlnn                         1/1     Running   0          37h   209.165.201.26   amf-cndp-b19-4-master-3   <none>           <none>
    etcd-amf-ins1-etcd-cluster-0                           2/2     Running   2          37h   209.165.201.14   amf-cndp-b19-4-master-1   <none>           <none>
    etcd-amf-ins1-etcd-cluster-1                           2/2     Running   0          37h   209.165.201.17   amf-cndp-b19-4-master-2   <none>           <none>
    etcd-amf-ins1-etcd-cluster-2                           2/2     Running   0          37h   209.165.201.21   amf-cndp-b19-4-master-3   <none>           <none>
    georeplication-pod-0                                   1/1     Running   0          37h   209.165.201.30   amf-cndp-b19-4-master-2   <none>           <none>
    grafana-dashboard-amf-695457b77d-gdhf5                 1/1     Running   0          37h   209.165.201.4    amf-cndp-b19-4-master-1   <none>           <none>
    grafana-dashboard-app-infra-amf-ins1-cfb8b656d-54s9z   1/1     Running   0          37h   209.165.201.10   amf-cndp-b19-4-master-1   <none>           <none>
    grafana-dashboard-etcd-amf-ins1-5c7d9d75db-729sl       1/1     Running   0          37h   209.165.201.5    amf-cndp-b19-4-master-1   <none>           <none>
    gtpc-ep-n0-0                                           2/2     Running   1          37h   209.165.201.12   amf-cndp-b19-4-master-1   <none>           <none>
    li-ep-n0-0                                             2/2     Running   0          37h   209.165.201.1    amf-cndp-b19-4-master-1   <none>           <none>
    li-ep-n0-1                                             2/2     Running   0          37h   209.165.201.18   amf-cndp-b19-4-master-2   <none>           <none>
    nodemgr-n0-0                                           2/2     Running   1          37h   209.165.201.9    amf-cndp-b19-4-master-1   <none>           <none>
    nodemgr-n0-1                                           2/2     Running   1          37h   209.165.201.23   amf-cndp-b19-4-master-3   <none>           <none>
    oam-pod-0                                              2/2     Running   1          37h   209.165.201.6    amf-cndp-b19-4-master-1   <none>           <none>
    ops-center-amf-ins1-ops-center-5bf9df44b6-pn5ds        5/5     Running   0          36h   209.165.201.24   amf-cndp-b19-4-master-3   <none>           <none>
    prometheus-rules-etcd-796ffd6cdf-w48rj                 1/1     Running   0          37h   209.165.201.13   amf-cndp-b19-4-master-1   <none>           <none>
    smart-agent-amf-ins1-ops-center-8475b6559d-q9gb2       1/1     Running   0          37h   209.165.201.11   amf-cndp-b19-4-master-1   <none>           <none>
    udp-proxy-0                                            1/1     Running   0          37h   209.165.201.29   amf-cndp-b19-4-master-1   <none>           <none>
    udp-proxy-1                                            1/1     Running   0          37h   209.165.201.30   amf-cndp-b19-4-master-2   <none>           <none>