3.5.2. 通过 CLI 删除 Red Hat OpenShift distributed tracing 平台实例
登录 OpenShift Container Platform CLI。
$ oc login --username=<NAMEOFUSER>
运行以下命令显示分布式追踪平台实例:
$ oc get deployments -n <jaeger-project>
例如,
$ oc get deployments -n openshift-operators
Operator 的名称具有后缀
-operator
。以下示例显示了两个 Red Hat OpenShift distributed tracing Platform Operator 和四个分布式追踪平台实例:$ oc get deployments -n openshift-operators
您应该看到类似如下的输出:
NAME READY UP-TO-DATE AVAILABLE AGE elasticsearch-operator 1/1 1 1 93m jaeger-operator 1/1 1 1 49m jaeger-test 1/1 1 1 7m23s jaeger-test2 1/1 1 1 6m48s tracing1 1/1 1 1 7m8s tracing2 1/1 1 1 35m
要删除分布式追踪平台的实例,请运行以下命令:
$ oc delete jaeger <deployment-name> -n <jaeger-project>
例如:
$ oc delete jaeger tracing2 -n openshift-operators
要验证删除过程,请再次运行
oc get deployments
命令:$ oc get deployments -n <jaeger-project>
例如:
$ oc get deployments -n openshift-operators
您应该看到与以下示例类似的输出:
NAME READY UP-TO-DATE AVAILABLE AGE elasticsearch-operator 1/1 1 1 94m jaeger-operator 1/1 1 1 50m jaeger-test 1/1 1 1 8m14s jaeger-test2 1/1 1 1 7m39s tracing1 1/1 1 1 7m59s