Uninstall

Learn how to clean up the Oracle SOA Suite domain setup.

Remove the domain

  1. Remove the domain’s ingress (for example, Traefik ingress) using Helm:

    $ helm uninstall soa-domain-ingress -n sample-domain1-ns
    

    For example:

    $ helm uninstall soainfra-traefik -n soans
    
  2. Remove the domain resources by using the sample delete-weblogic-domain-resources.sh script present at ${WORKDIR}/delete-domain:

    $ cd ${WORKDIR}/delete-domain
    $ ./delete-weblogic-domain-resources.sh -d sample-domain1
    

    For example:

    $ cd ${WORKDIR}/delete-domain
    $ ./delete-weblogic-domain-resources.sh -d soainfra
    
  3. Use kubectl to confirm that the server pods and domain resource are deleted:

    $ kubectl get pods -n sample-domain1-ns
    $ kubectl get domains -n sample-domain1-ns
    

    For example:

    $ kubectl get pods -n soans
    $ kubectl get domains -n soans
    

Drop the RCU schemas

Follow these steps to drop the RCU schemas created for Oracle SOA Suite domains.

Remove the domain namespace

  1. Configure the installed ingress load balancer (for example, Traefik) to stop managing the ingresses in the domain namespace:

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

    $ helm upgrade  sample-weblogic-operator \
      charts/weblogic-operator \
      --namespace sample-weblogic-operator-ns \
      --reuse-values \
      --set "domainNamespaces={}" \
      --wait
    

    For example:

    $ cd ${WORKDIR}
    $ helm upgrade weblogic-kubernetes-operator \
      charts/weblogic-operator \
      --namespace opns \
      --reuse-values \
      --set "domainNamespaces={}" \
      --wait
    
  3. Delete the domain namespace:

    $ kubectl delete namespace sample-domain1-ns
    

    For example:

    $ kubectl delete namespace soans
    

Remove the operator

  1. Remove the operator:

    $ helm uninstall sample-weblogic-operator -n sample-weblogic-operator-ns
    

    For example:

    $ helm uninstall weblogic-kubernetes-operator -n opns
    
  2. Remove the operator’s namespace:

    $ kubectl delete namespace sample-weblogic-operator-ns
    

    For example:

    $ kubectl delete namespace opns
    

Remove the load balancer

  1. Remove the installed ingress based load balancer (for example, Traefik):

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

    $ kubectl delete namespace traefik
    

Delete the domain home

To remove the domain home that is generated using the create-domain.sh script, with appropriate privileges manually delete the contents of the storage attached to the domain home persistent volume (PV).

For example, for the domain’s persistent volume of type host_path:

$ rm -rf /scratch/k8s_dir/SOA/*