Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Display Microservice Status in Cloud-Native Contrail Networking

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

To display service status for the Contrail cluster, you need:

  • 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.
  • 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 and provides better ways to manage to 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, init (initialization) container status within the service and the relative software status, such as BGP and XMPP in control_controller are also visible.

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 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. The command gives the output for the XMPP session.

To display the resource status in the control node, run the following command. The command 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 displays as Active. If the controller has any error, the status column of the controller displays 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: