To remove the resources you have created in these samples:
Delete the resources associated with the domain.
$ /tmp/weblogic-kubernetes-operator/kubernetes/samples/scripts/delete-domain/delete-weblogic-domain-resources.sh -d sample-domain1
$ /tmp/weblogic-kubernetes-operator/kubernetes/samples/scripts/delete-domain/delete-weblogic-domain-resources.sh -d sample-domain2
This deletes the domain and any related resources that are labeled with the domain UID
It leaves the namespace intact, the operator running, the load balancer running (if installed), and the database running (if installed).
NOTE: When you delete a domain, the operator will detect your domain deletion and shut down its pods. Wait for these pods to exit before deleting the operator that monitors the
sample-domain1-ns namespace. You can monitor this process using the command
kubectl get pods -n sample-domain1-ns --watch (
ctrl-c to exit).
If you set up the Traefik ingress controller:
$ helm uninstall traefik-operator -n traefik
$ kubectl delete namespace traefik
If you set up a database for the Update 4 use case:
Delete the operator and its namespace:
$ helm uninstall sample-weblogic-operator -n sample-weblogic-operator-ns
$ kubectl delete namespace sample-weblogic-operator-ns
Delete the domain’s namespace:
$ kubectl delete namespace sample-domain1-ns
Delete the images you may have created in this sample:
$ docker image rm wdt-domain-image:WLS-v1
$ docker image rm wdt-domain-image:WLS-v2