k8s-deployment-show

Deployments represent a set of multiple, identical Pods with no unique identities. A deployment runs multiple replicas of your application, and automatically replaces any instances that fail or become unresponsive. In this way, deployments help ensure that one or more instances of your application are available to serve user requests. This command is used to display Kubernetes deployment information.

Syntax   k8s-deployment-show


cluster-name cluster-name-string

Name of the Kubernetes node.

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

Display 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 deployment.

namespace namespace-string

Name of the namespace.

replicas replicas-number

The total replicas of pod.

ready-replicas ready-replicas-number

The ready replicas of pod.

selector selector-string

The pod label in deployment.

action none|add|remove|update

The last action performed.


Defaults   None.

Access   CLI

History   

Version 7.0.0

Command introduced.

Usage   Use this command to display Kubernetes deployment information.

Examples  Use the following syntax to display Kubernetes deployment information.


CLI (network-admin@switch) > k8s-deployment-show

cluster-name name                      namespace            replicas ready-replicas selector                          last-changed

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

arista       my-app                    default              1        1              app:my-app                        01:07:38 

arista       pingtest                  default              2        2              app:pingtest                      01:07:38

arista       kubernetes-dashboard      kubernetes-dashboard 1        1              k8s-app:kubernetes-dashboard      01:07:38 

arista       dashboard-metrics-scraper kubernetes-dashboard 1        1              k8s-app:dashboard-metrics-scraper 01:07:39   

arista       hello-world               default              5        5              run:load-balancer-example         01:07:39 

arista       petstore                  default              1        1              app:petstore                      01:07:39

arista       discovery                 gloo-system          1        1              gloo:discovery                    01:07:39 

arista       gloo                      gloo-system          1        1              gloo:gloo                         01:07:39 

arista       ingress                   gloo-system          1        1              gloo:ingress                      01:07:39 

arista       ingress-proxy             gloo-system          1        1              gloo:ingress-proxy                01:07:39 

arista       coredns                   kube-system          2        2              k8s-app:kube-dns                  01:07:39


north
    keyboard_arrow_up
    keyboard_arrow_down
    description
    print
    feedback
    support
    business
    rss_feed
    south