Clean up

Remove the domain and cluster.

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

    $ kubectl delete ingressroute quickstart -n sample-domain1-ns
    $ kubectl delete ingressroute console -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
    $ kubectl -n sample-domain1-ns delete secret sample-domain1-runtime-encryption-secret
    

Remove the domain namespace.

  1. Configure the Traefik ingress controller to stop managing the ingresses in the domain namespace.

    $ helm upgrade traefik-operator traefik/traefik \
        --namespace traefik \
        --reuse-values \
        --set "kubernetes.namespaces={traefik}"
    
  2. Delete the domain namespace.

    $ kubectl delete namespace sample-domain1-ns
    

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