k8s-network-show

This command is used to display the relation between Kubernetes networking components like ingress, services, and Pods.

Syntax   k8s-network-show

cluster-name cluster-name-string

Name of the Kubernetes cluster.

Specify one or more of the following options:


namespace namespace-string

Name of the namespace.

ingress-name ingress-name-string

Name of the ingress.

host host-string

The state of the pod.

type type-string

Name of the pod.

external-ip external-ip-string

Displays the external IP for services of type load balancer.

node-port node-port-string

The service node port.

service-name service-name-string

Name of the service.

selector selector-string

The service selector to identify pods.

endpoints endpoints-string

The list of pod IP addresses.


Defaults   None.

Access   CLI

History   

Version 7.0.0

Command introduced.

Usage   Use this command to display Kubernetes network information.

Examples  Use the following syntax to display information about the Kubernetes networks.

CLI (network-admin@switch) > k8s-network-show ingress-name petstore-ingress 


cluster-name namespace ingress-name     service    pod

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

arista       default   petstore-ingress petstore   petstore9d499b76f-qj58s 

                                                           9d499b76f-649g6 

                                                           9d499b76f-hhmg4 

                                                           9d499b76f-psv8w 

                       petstore         petstore   petstore

north
    keyboard_arrow_up
    keyboard_arrow_down
    description
    print
    feedback
    support
    business
    rss_feed
    south