Learn how to clean up the Oracle SOA Suite domain setup.
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
Remove the domain resources by using the sample delete-weblogic-domain-resources.sh
script present at ${WORKDIR}/weblogic-kubernetes-operator/kubernetes/samples/scripts/delete-domain
:
$ cd ${WORKDIR}/weblogic-kubernetes-operator/kubernetes/samples/scripts/delete-domain
$ ./delete-weblogic-domain-resources.sh -d sample-domain1
For example:
$ cd ${WORKDIR}/weblogic-kubernetes-operator/kubernetes/samples/scripts/delete-domain
$ ./delete-weblogic-domain-resources.sh -d soainfra
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
Follow these steps to drop the RCU schemas created for Oracle SOA Suite domains.
Configure the installed ingress load balancer (for example, Traefik) to stop managing the ingresses in the domain namespace:
$ helm upgrade traefik-operator stable/traefik \
--namespace traefik \
--reuse-values \
--set "kubernetes.namespaces={traefik}" \
--wait
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
For example:
$ cd ${WORKDIR}/weblogic-kubernetes-operator
$ helm upgrade weblogic-kubernetes-operator \
kubernetes/charts/weblogic-operator \
--namespace opns \
--reuse-values \
--set "domainNamespaces={}" \
--wait
Delete the domain namespace:
$ kubectl delete namespace sample-domain1-ns
For example:
$ kubectl delete namespace soans
Remove the operator:
$ helm uninstall sample-weblogic-operator -n sample-weblogic-operator-ns
For example:
$ helm uninstall weblogic-kubernetes-operator -n opns
Remove the operator’s namespace:
$ kubectl delete namespace sample-weblogic-operator-ns
For example:
$ kubectl delete namespace opns
Remove the installed ingress based load balancer (for example, Traefik):
$ helm uninstall traefik -n traefik
Remove the Traefik namespace:
$ kubectl delete namespace traefik
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