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 sample-domain1
and sample-domain2
.
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 JRF
or the Update 4 use case:
$ /tmp/weblogic-kubernetes-operator/kubernetes/samples/scripts/create-oracle-db-service/stop-db-service.sh
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 model-in-image:WLS-v1
$ docker image rm model-in-image:WLS-v2
$ docker image rm model-in-image:JRF-v1
$ docker image rm model-in-image:JRF-v2