Clean up OCI Service Operator for Kubernetes
Undeploy OCI Service Operator for Kubernetes.
If you need to undeploy OCI Service Operator for Kubernetes, follow these steps:
- (Optional) If you created any resources using the operator, first delete the
resources by applying the following commands. If no resources were created with
the operator, go to step 2. Note
The example shows commands for every resource type. You only need to run the command for the resource types you created.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
- Undeploy OCI Service Operator for Kubernetes. The following command undeploys an
operator deployed in the
oci-service-operator-system
) namespace:
operator-sdk cleanup oci-service-operator -n oci-service-operator-system
The command produces output similar to the following:
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