KubernetesのOCIサービス・オペレータのクリーン・アップ

Kubernetes用のOCI Service Operatorをアンデプロイします。

OCI Service Operator for Kubernetesをアンデプロイする必要がある場合は、次のステップに従います:

  1. (オプション)演算子を使用してリソースを作成した場合は、最初に次のコマンドを適用してリソースを削除します。演算子を使用してリソースが作成されていない場合は、ステップ2に進みます。
    ノート

    この例は、すべてのリソース・タイプのコマンドを示しています。作成したリソース・タイプに対してのみコマンドを実行する必要があります。
    kubectl delete --ignore-not-found=true crd virtualdeploymentbindings.servicemesh.oci.oracle.com --wait=true
    kubectl delete --ignore-not-found=true crd ingressgatewaydeployments.servicemesh.oci.oracle.com --wait=true
    kubectl delete --ignore-not-found=true crd accesspolicies.servicemesh.oci.oracle.com --wait=true
    kubectl delete --ignore-not-found=true crd ingressgatewayroutetables.servicemesh.oci.oracle.com --wait=true
    kubectl delete --ignore-not-found=true crd ingressgateways.servicemesh.oci.oracle.com --wait=true
    kubectl delete --ignore-not-found=true crd virtualserviceroutetables.servicemesh.oci.oracle.com --wait=true
    kubectl delete --ignore-not-found=true crd virtualdeployments.servicemesh.oci.oracle.com --wait=true
    kubectl delete --ignore-not-found=true crd virtualservices.servicemesh.oci.oracle.com --wait=true
    kubectl delete --ignore-not-found=true crd meshes.servicemesh.oci.oracle.com --wait=true
    kubectl delete --ignore-not-found=true crd autonomousdatabases.oci.oracle.com --wait=true
    kubectl delete --ignore-not-found=true crd mysqldbsystems.oci.oracle.com --wait=true
    kubectl delete --ignore-not-found=true crd streams.oci.oracle.com --wait=true
  2. OCI Service Operator for Kubernetesをアンデプロイします。次のコマンドは、oci-service-operator-system)ネームスペースにデプロイされた演算子をアンデプロイします。
operator-sdk cleanup oci-service-operator -n oci-service-operator-system

コマンドを実行すると、次のように出力されます。

INFO[0004] subscription "oci-service-operator-vX-X-X-sub" deleted 
INFO[0005] customresourcedefinition "accesspolicies.servicemesh.oci.oracle.com" deleted 
INFO[0006] customresourcedefinition "autonomousdatabases.oci.oracle.com" deleted 
INFO[0006] customresourcedefinition "ingressgatewaydeployments.servicemesh.oci.oracle.com" deleted 
INFO[0007] customresourcedefinition "ingressgatewayroutetables.servicemesh.oci.oracle.com" deleted 
INFO[0008] customresourcedefinition "ingressgateways.servicemesh.oci.oracle.com" deleted 
INFO[0009] customresourcedefinition "meshes.servicemesh.oci.oracle.com" deleted 
INFO[0010] customresourcedefinition "mysqldbsystems.oci.oracle.com" deleted 
INFO[0010] customresourcedefinition "streams.oci.oracle.com" deleted 
INFO[0011] customresourcedefinition "virtualdeploymentbindings.servicemesh.oci.oracle.com" deleted 
INFO[0012] customresourcedefinition "virtualdeployments.servicemesh.oci.oracle.com" deleted 
INFO[0013] customresourcedefinition "virtualserviceroutetables.servicemesh.oci.oracle.com" deleted 
INFO[0013] customresourcedefinition "virtualservices.servicemesh.oci.oracle.com" deleted 
INFO[0014] clusterserviceversion "oci-service-operator.vX.X.X" deleted 
INFO[0015] catalogsource "oci-service-operator-catalog" deleted 
INFO[0016] operatorgroup "operator-sdk-og" deleted      
INFO[0016] Operator "oci-service-operator" uninstalled