k8s-pod-show

Pods are the smallest units that you can deploy using Kubernetes. Pods consist of one or more containers that are always scheduled together. Each Kubernetes pod has a unique IP address. This command is used to display Kubernetes pod information.

Syntax   k8s-pod-show

cluster-name cluster-name-string

Name of the Kubernetes cluster.

Specify one or more of the following options:

start-time date/time: yyyy-mm-ddTHH:mm:ss

The start time of statistics collection.

end-time date/time: yyyy-mm-ddTHH:mm:ss

The end time of statistics collection.

duration duration: #d#h#m#s

The duration of statistics collection.

interval duration: #d#h#m#s

The interval between statistics collection.

since-start

Statistics collected since start time.

older-than duration: #d#h#m#s

Statistics older than the specified duration.

within-last duration: #d#h#m#s

Display statistics within the last specified duration.

name name-string

Name of the daemonset.

namespace namespace-string

The namespace.

ip ip-string

The IP address of the pod.

state state-string

The state of the pod.

container-state container-state-string

The pod's container high level state.

node node-string

Name of the pod.

containers containers-string

The container images running on the pod.

labels labels-string

The pod labels.

action none|add|remove|update

The last action performed.

connections connections-string

The connections to fabric switches.


Defaults   None.

Access   CLI

History   

Version 7.0.0

Command introduced.

Usage   Use this command to display Kubernetes pod information.

Examples  Use the following syntax to display Kubernetes pod information.

CLI (network-admin@switch) > k8s-pod-show format name,namespace,ip,state,node,containers,labels

 

name                                       namespace            ip            state   node           containers          labels 

------------------------------------------ -------------------- ------------- ------- -------------- ------------------- --------------------------------

kube-apiserver-server-test-93              kube-system          192.168.99.20 Running servertest-93  k8s.gcr.io/kube-... component:kube-apiserver,tier... 

kube-proxy-d28w9                           kube-system          192.168.99.22 Running servertest-103 k8s.gcr.io/kube-... controller-revision-hash:84f9... 

kube-flannel-ds-ltctg                      kube-system          192.168.99.22 Running servertest-103 quay.io/coreos/f... app:flannel,controller-revisi... 

dashboard-metrics-scraper-79c5968bdc-hwpcg kubernetes-dashboard 10.244.1.35   Running servertest-94  kubernetesui/met... k8s-app:dashboard-metrics-scr... 

kube-scheduler-server-test-93              kube-system          192.168.99.20 Running servertest-93  k8s.gcr.io/kube-... component:kube-scheduler,tier... 

kube-controller-manager-server-test-93     kube-system          192.168.99.20 Running servertest-93  k8s.gcr.io/kube-... component:kube-controller-man... 

gloo-7dc68dd65b-clz98                      gloo-system          10.244.2.36   Running servertest-103 quay.io/solo-io/... pod-template-hash:7dc68dd65b,...

north
    keyboard_arrow_up
    keyboard_arrow_down
    description
    print
    feedback
    support
    business
    rss_feed
    south