Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

クラウドネイティブルーターコントローラとクラウドネイティブルーターvRouterの管理

概要 このトピックでは、クラウドネイティブルーターCLIにアクセスする方法、cRPDおよびvRouterコンテナで運用コマンドを実行する方法、クラウドネイティブルーターを削除する方法について説明します。

クラウドネイティブルーターCLIへのアクセス

クラウドネイティブルーターのCLIにアクセスして、ルーターのステータスを監視し、設定を変更することができます。このセクションでは、cRPD および vRouter CLI へのアクセスに使用するコマンドと、show コマンドの例を示します。

クラウドネイティブルーターコントローラ要素はKubernetes(K8s)クラスタ内のPodとして動作するため、CLIにアクセスするにはK8sコマンドを使用する必要があります。以下に例を示します。この例では、コマンドをコピーしてサーバーに貼り付けできるようにするため、特定のディレクトリパスは提供していません。

Access the Cloud-Native Router Controller (cRPD) CLI

In this example we list all of the K8s Pods running on the K8s host server. We use that output to identify the cRPD Pod that hosts the cloud-native router controller container. We then connect to the CLI of the cloud-native router controller and run some show commands.

List the K8s Pods Running in the Cluster

The only Pod that has cRPD in its name is the kube-crpd-worker-ds-npbjq. Thus, this is the name of the Pod we will use to access the cRPD CLI.

Connect to the cRPD CLI

The kubectl command that allows access to the controller's CLI has the following form:

kubectl exec -n <namespace> -it <cRPD worker Pod name> -- bash

In practice, you substitute values from your system for the values contained between angle brackets (<>). For example:

The result of the above command should appear similar to:

At this point, you have connected to the shell of the cloud-native router. Just as with other Junos-based shells, you access the operational mode of the cloud-native router the same way as if you were connected to the console of a physical Junos OS device.

root@jcnr-01:/# cli

Example Show Commands

In the following examples, we remove the prompt, root@jcnr-01>, so you can copy and paste the commands into your system without editing them.

Access the Cloud-Native Router vRouter CLI

In this example we list all of the K8s Pods running on the K8s host server. We use that output to identify the vRouter Pod that hosts the cloud-native router vrouter-agent container. We then connect to the CLI of the vRouter-agent and run a show command to list the available interfaces.

List the K8s Pods Running in the Cluster

Connect to the Cloud-Native Router vRouter CLI

The kubectl command that allows access to the controller's CLI has the following form:

kubectl exec -n contrail -it <contrail-vrouter-masters-pod> -- bash

In practice, you substitute values from your system for the values contained between angle brackets (<>). For example:

At this point, you have connected to the vRouter's CLI. You can run commands in the CLI to learn about the state of the vRouter. For example, the command shown below allows you to see which interfaces are present on the vRouter.

ジュニパークラウドネイティブルーターの削除

このトピックでは、 コマンドの特定のディレクトリ名は提供していません。これにより、このドキュメントのコマンドをコピーしてサーバーに貼り付けることができます。

次のコマンドを実行して、ジュニパークラウドネイティブルーターをアンインストールします。

メモ:

jcnr名前空間は、ステアリングのアンインストールの一部として削除されず、手動で削除する必要があります。