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

The name of the Kubernetes cluster.

Specify one or more of the following options:


namespace namespace-string

The name of the namespace.

ingress-name ingress-name-string

The IP address of the pod.

host host-string

The state of the pod.

type type-string

The 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

The 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 information about the Kubernetes networks.

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

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

pluribus     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