2.12.2.2. Operator 리소스 정리

다음 절차에 따라 OpenShift Container Platform 웹 콘솔을 사용하여 Red Hat OpenShift Service Mesh Operator를 제거한 후 남은 리소스를 수동으로 제거하십시오.

사전 요구 사항

  • 클러스터 관리 권한이 있는 계정.
  • oc라고도 하는 OpenShift Container Platform 명령줄 인터페이스(CLI)에 액세스합니다.

프로세스

  1. OpenShift Container Platform CLI에 클러스터 관리자로 로그인합니다.
  2. Operator를 제거한 후 다음 명령을 실행하여 리소스를 정리합니다. 서비스 메시 없이 Jaeger를 독립형 서비스로 계속 사용하려면 Jaeger 리소스를 삭제하지 마십시오.

    참고

    Operator는 기본적으로 openshift-operators 네임스페이스에 설치됩니다. 다른 네임스페이스에 Operators를 설치한 경우openshift-operators를 Red Hat OpenShift Service Mesh Operator가 설치된 프로젝트의 이름으로 교체합니다.

    $ oc delete validatingwebhookconfiguration/openshift-operators.servicemesh-resources.maistra.io
    $ oc delete mutatingwebhookconfiguration/openshift-operators.servicemesh-resources.maistra.io
    $ oc delete -n openshift-operators daemonset/istio-node
    $ oc delete clusterrole/istio-admin clusterrole/istio-cni clusterrolebinding/istio-cni
    $ oc delete clusterrole istio-view istio-edit
    $ oc delete clusterrole jaegers.jaegertracing.io-v1-admin jaegers.jaegertracing.io-v1-crdview jaegers.jaegertracing.io-v1-edit jaegers.jaegertracing.io-v1-view
    $ oc get crds -o name | grep '.*\.istio\.io' | xargs -r -n 1 oc delete
    $ oc get crds -o name | grep '.*\.maistra\.io' | xargs -r -n 1 oc delete
    $ oc get crds -o name | grep '.*\.kiali\.io' | xargs -r -n 1 oc delete
    $ oc delete crds jaegers.jaegertracing.io
    $ oc delete svc admission-controller -n <operator-project>
    $ oc delete project <istio-system-project>