Clean up

Remove the domain.

  1. Remove the domain’s ingress by using helm:

    $ helm uninstall sample-domain1-ingress -n sample-domain1-ns
    
  2. Remove the Kubernetes resources associated with the domain by using the sample delete-weblogic-domain-resources script:

    $ kubernetes/samples/scripts/delete-domain/delete-weblogic-domain-resources.sh -d sample-domain1
    
  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
    

Remove the domain namespace.

  1. Configure the Traefik load balancer to stop managing the ingresses in the domain namespace:

    $ helm upgrade traefik-operator stable/traefik \
        --namespace traefik \
        --reuse-values \
        --set "kubernetes.namespaces={traefik}" \
        --wait
    
  2. Configure the operator to stop managing the domain:

    $ helm upgrade  sample-weblogic-operator \
                  kubernetes/charts/weblogic-operator \
      --namespace sample-weblogic-operator-ns \
      --reuse-values \
      --set "domainNamespaces={}" \
      --wait \
    
  3. 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 load balancer.

  1. Remove the Traefik load balancer:

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

    $ kubectl delete namespace traefik