k8s-endpoint-show

This command is used to display information about Pods targeted by a service (Pod IP addresses) in a Kubernetes cluster.

Syntax   k8s-endpoint-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

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 endpoint.

namespace namespace-string

Specify the namespace.

selector selector-string

Specify the label selector.

target-ports target-ports-string

Ports targeted on ports.

endpoints endpoints-string

The list of pod IP addresses.

action none|add|remove|update

The last changed action.


Defaults   None.

Access   CLI

History   

Version 7.0.0

Command introduced.

Usage   Use this command to display information about Pods targeted by a service (Pod IP addresses) in a Kubernetes cluster.

Examples  Use the following syntax to display Kubernetes endpoint information.


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

  

cluster-name name                      namespace            endpoints               last-changed

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

arista       gloo                      gloo-system          10.244.1.112            0824,02:01:19 

arista       ingress-proxy             gloo-system          10.244.1.113            0824,02:01:19 

arista       kube-dns                  kube-system          10.244.0.11,10.244.0.10 0824,02:01:19 

arista       dashboard-metrics-scraper kubernetes-dashboard 10.244.0.12             0824,02:01:19 

arista       kubernetes-dashboard      kubernetes-dashboard 10.244.0.13             0824,02:01:19 

arista       petstore                  default              10.244.1.114            0826,07:54:22

north
    keyboard_arrow_up
    keyboard_arrow_down
    description
    print
    feedback
    support
    business
    rss_feed
    south