Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Display Microservice Status

Juniper® Cloud-Native Contrail Networking (CN2) supports microservices in environments using CN2 Release 22.1 or later in a Kubernetes-orchestrated environment.

To display microservice status in CN2 cluster, you need:

  • A CLI tool, such as kubectl to provide the overall system status of all the services running.

  • The contrailstatus plugin must be installed along with kubectl.

  • The use of command kubectl contrailstatus to request the status of various services.

Overview: Microservice Status in Cloud-Native Contrail Networking

Microservices exist as small, independent applications deployed without updating the entire Contrail Networking deployment. Microserves provide better ways to manage the life cycle of containers. The containers and their processes are grouped as services and microservices.

ContrailStatus is a kubectl plugin used to display the status information of Contrail Networking services in the three different planes (configuration, control, and data). In addition to the usual containers in a specific service, you can also view:

  • init (initialization) container status within the service.

  • The relative software status, such as BGP and XMPP, in control_controller.

The contrailstatus plug-in is categorized into two sections:

  • Deployment status

  • Resource status

Display Microservice Status

The following outputs are examples showing deployment status updates and resource status updates to the pods for all planes.

Display Deployment Status

Display deployment status in either short form or default form.

All Planes Deployment Status

To display the deployment status for all of the planes and request the short form:

The option -short for short form only displays output for the pod name and status. The following example outputs are using the default form.

Configuration Plane Deployment Status

To display the deployment status to the configuration plane:

Data Plane Deployment Status

To display the deployment status to the data plane:

Control Plane Deployment Status

To display the deployment status to the control plane:

Display Resource Status

The contrailstatus plugin also displays status updates for deployment resources, such as XMPP and BGP.

Data Plane Resource Status

To display the resource status of bgprouter to the data plane:

Control Node Resource Status

To display the resource status in the control node, run the following command, which displays the output for the XMPP session:

To display the resource status in the control node, run the following command, which gives the output for the BGP session:

All Planes Resource Status

To display the resource status on all of the planes:

Services Status for Multiple Nodes

The following (same) command displays the status of various services running on multiple nodes in a cluster. If the running controller is active without any errors, the status column next to the service is displayed as Active. If the controller has any errors, the status column of the controller is displayed as Not-Active. The output includes the status of various controllers and containers in the controllers.

To display the status of various services running on multiple nodes in a cluster: