Remove the domain’s ingress by using helm
:
$ helm uninstall sample-domain1-ingress -n sample-domain1-ns
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
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
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}"
Delete the domain namespace:
$ kubectl delete namespace sample-domain1-ns
Remove the operator:
$ helm uninstall sample-weblogic-operator -n sample-weblogic-operator-ns
Remove the operator’s namespace:
$ kubectl delete namespace sample-weblogic-operator-ns
Remove the Traefik ingress controller:
$ helm uninstall traefik-operator -n traefik
Remove the Traefik namespace:
$ kubectl delete namespace traefik
When no longer needed, delete the generated image by using the docker rmi
command.
Use the following command to delete an image tagged with domain-home-in-image:12.2.1.4
:
$ docker rmi domain-home-in-image:12.2.1.4
When no longer needed, delete the directory where WebLogic Deploy Tool and WebLogic Image Tool are installed.
$ rm -rf /tmp/dhii-sample/tools/