Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Kubectl Contrailstatus

Syntax

Description

This command displays the status' of various Contrail components. You can display the status' of the Configuration plane components, the Control plane components, the Data plane components, and the BGP routers and other resources.

Options

kubectl contrailstatus deployment --plane config Displays the status of the Configuration plane components:
  • contrail-k8s-apiserver
  • contrail-k8s-controller
  • contrail-k8s-kubemanager
kubectl contrailstatus deployment --plane control Displays the status of the Control plane components:
  • contrail-control
kubectl contrailstatus deployment --plane data Displays the status of the Data plane components:
  • contrail-vrouter-masters
  • contrail-vrouter-nodes
kubectl contrailstatus resource bgprouter Displays the status' of the various BGP and XMPP neighbor relationships.
kubectl contrailstatus resource globalsystemconfig Displays the status of the GlobalSystemConfig.
kubectl contrailstatus resource routinginstance Displays the status' of the various RoutingInstances in Contrail.
kubectl contrailstatus resource virtualnetwork Displays the status' of the various VirtualNetworks in Contrail.
kubectl contrailstatus --all Displays the status' of the Configuration/Control/Data planes and the BGP and XMPP relationships.
kubectl contrailstatus version Displays the contrailstatus version.

Additional Information

The --wide qualifier displays more information (if available) on the queried component.

Use the --help qualifier to display the help at any point in the command.

This command looks for the kubeconfig file in the default ~/.kube/config location. You can't use the kubectl --kubeconfig option to specify the location of the kubeconfig file.

Output Fields

Table 1 lists the output fields for the kubectl contrailstatus command.

Table 1: kubectl contrailstatus Output Fields

Field Name

Field Description

NAME The name of the pod or resource.
STATUS The status of the pod or resource.
NODE The name of the node on which the pod is running.
IP The (machine) IP address of the node on which the pod is running.
MESSAGE Not used.
LOCAL BGPROUTER The name of the node on which the local BGP router is running.
NEIGHBOR BGPROUTER The name of the node on which the neighbor BGP router is running.
ENCODING Whether this connection is XMPP or BGP.
STATE The state of this connection.
POD The name of the pod on which the local BGP router is running.

Sample Output

kubectl contrailstatus --all

Release Information

This command is supported in the initial release.