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-ins3 -o wide NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES amf-ins3-amf-gosctp-lb-sctp-1-0 1/1 Running 0 2d16h 209.165.201.29 amf-cndp-tb27d-master-1 <none> <none> amf-ins3-amf-gosctp-lb-sctp-1-1 1/1 Running 0 2d16h 209.165.201.30 amf-cndp-tb27d-master-2 <none> <none> amf-ins3-amf-protocol-ep-default-0 2/2 Running 0 2d16h 192.203.42.85 amf-cndp-tb27d-master-2 <none> <none> amf-ins3-amf-protocol-ep-default-1 2/2 Running 0 2d16h 192.203.236.6 amf-cndp-tb27d-master-1 <none> <none> amf-ins3-amf-rest-ep-n0-0 2/2 Running 0 2d19h 192.203.236.55 amf-cndp-tb27d-master-1 <none> <none> amf-ins3-amf-rest-ep-n0-1 2/2 Running 0 2d19h 192.203.42.123 amf-cndp-tb27d-master-2 <none> <none> amf-ins3-amf-service-n0-0 2/2 Running 1 (2d19h ago) 2d19h 192.203.211.179 amf-cndp-tb27d-master-3 <none> <none> amf-ins3-amf-service-n0-1 2/2 Running 0 2d19h 192.203.211.131 amf-cndp-tb27d-master-3 <none> <none> amf-ins3-amf-service-n1-0 2/2 Running 1 (2d19h ago) 2d19h 192.203.236.62 amf-cndp-tb27d-master-1 <none> <none> amf-ins3-amf-service-n1-1 2/2 Running 0 2d19h 192.203.236.63 amf-cndp-tb27d-master-1 <none> <none> base-entitlement-amf-679fd785c-2zrnl 1/1 Running 0 3d12h 192.203.211.149 amf-cndp-tb27d-master-3 <none> <none> cache-pod-0 1/1 Running 0 2d19h 192.203.236.50 amf-cndp-tb27d-master-1 <none> <none> cache-pod-1 1/1 Running 0 2d19h 192.203.42.80 amf-cndp-tb27d-master-2 <none> <none> etcd-amf-ins3-etcd-cluster-0 2/2 Running 0 3d11h 192.203.236.52 amf-cndp-tb27d-master-1 <none> <none> etcd-amf-ins3-etcd-cluster-1 2/2 Running 0 3d11h 192.203.42.126 amf-cndp-tb27d-master-2 <none> <none> etcd-amf-ins3-etcd-cluster-2 2/2 Running 0 3d11h 192.203.211.178 amf-cndp-tb27d-master-3 <none> <none> georeplication-pod-0 1/1 Running 0 3d11h 209.165.201.31 amf-cndp-tb27d-master-2 <none> <none> grafana-dashboard-amf-774bdd8b6d-6t6kw 1/1 Running 0 3d11h 192.203.211.130 amf-cndp-tb27d-master-3 <none> <none> grafana-dashboard-etcd-amf-ins3-8597cf9fdc-72z7w 1/1 Running 0 3d11h 192.203.211.170 amf-cndp-tb27d-master-3 <none> <none> gtpc-ep-n0-0 2/2 Running 0 2d19h 192.203.236.22 amf-cndp-tb27d-master-1 <none> <none> gtpc-ep-n0-1 2/2 Running 0 2d19h 192.203.42.125 amf-cndp-tb27d-master-2 <none> <none> li-ep-n0-0 2/2 Running 0 3d11h 192.203.42.108 amf-cndp-tb27d-master-2 <none> <none> li-ep-n0-1 2/2 Running 0 3d11h 192.203.236.13 amf-cndp-tb27d-master-1 <none> <none> nodemgr-n0-0 2/2 Running 1 (2d19h ago) 2d19h 192.203.236.44 amf-cndp-tb27d-master-1 <none> <none> nodemgr-n0-1 2/2 Running 0 2d19h 192.203.211.150 amf-cndp-tb27d-master-3 <none> <none> oam-pod-0 2/2 Running 0 3d11h 192.203.211.146 amf-cndp-tb27d-master-3 <none> <none> ops-center-amf-ins3-ops-center-64479bd9d6-zqzzz 4/4 Running 0 3d12h 192.203.42.81 amf-cndp-tb27d-master-2 <none> <none> prometheus-rules-etcd-57688b5657-5gv5z 1/1 Running 0 3d11h 192.203.211.175 amf-cndp-tb27d-master-3 <none> <none> smart-agent-amf-ins3-ops-center-798d5f9884-zplrn 1/1 Running 0 3d12h 192.203.42.120 amf-cndp-tb27d-master-2 <none> <none> udp-proxy-0 1/1 Running 0 2d19h 198.51.100.10 amf-cndp-tb27d-master-1 <none> <none> udp-proxy-1 1/1 Running 0 2d19h 198.51.100.11 amf-cndp-tb27d-master-2 <none> <none>