Remove the domain and cluster

  1. Remove the domain’s ingress routes by using kubectl.

    $ kubectl delete ingressroute traefik-ingress-sample-domain1-admin-server -n sample-domain1-ns
    $ kubectl delete ingressroute traefik-ingress-sample-domain1-cluster-cluster-1 -n sample-domain1-ns
    $ kubectl delete ingressroute traefik-ingress-sample-domain2-cluster-cluster-1 -n sample-domain1-ns
  2. Use kubectl to delete the domain resource.

    $ kubectl delete domain sample-domain1 -n sample-domain1-ns
  3. Use kubectl to confirm that the WebLogic Server instance Pods and Domain are gone.

    $ kubectl get pods -n sample-domain1-ns
    $ kubectl get domains -n sample-domain1-ns
  4. Use kubectl to delete the cluster resource.

    $ kubectl delete cluster sample-domain1-cluster-1 -n sample-domain1-ns
  5. Remove the Kubernetes Secrets associated with the domain.

    $ kubectl -n sample-domain1-ns delete secret sample-domain1-weblogic-credentials

Remove the operator

  1. Remove the operator.

    $ helm uninstall sample-weblogic-operator -n sample-weblogic-operator-ns
  2. Remove the operator’s namespace.

    $ kubectl delete namespace sample-weblogic-operator-ns

Remove the ingress controller

  1. Remove the Traefik ingress controller.

    $ helm uninstall traefik-operator -n traefik
  2. Remove the Traefik namespace.

    $ kubectl delete namespace traefik