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 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