3.4.2. 通过 CLI 删除 Jaeger 实例

  1. 登录 OpenShift Container Platform CLI。

    $ oc login
  2. 要显示 Jaeger 实例,请运行以下命令:

    $ oc get deployments -n <jaeger-project>

    Operator 的名称具有后缀 -operator。以下示例显示了两个 Jaeger Operators 和四个 Jaeger 实例:

    $ oc get deployments -n jaeger-system

    您应该看到类似如下的输出:

    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
  3. 要删除 Jaeger 实例,请运行以下命令:

    $ oc delete jaeger <deployment-name> -n <jaeger-project>

    例如,

    $ oc delete jaeger tracing2 -n jaeger-system
  4. 要验证删除过程,请再次运行 oc get deployment :

    $ oc get deployments -n <jaeger-project>

    例如,

    $ oc get deployments -n jaeger-system

    您应该看到类似如下的输出:

    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