Remove the domain’s ingress routes by using kubectl
.
$ kubectl delete ingressroute quickstart -n sample-domain1-ns
$ kubectl delete ingressroute console -n sample-domain1-ns
Use kubectl
to delete the domain resource.
$ kubectl delete domain sample-domain1 -n sample-domain1-ns
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
Use kubectl
to delete the cluster resource.
$ kubectl delete cluster sample-domain1-cluster-1 -n sample-domain1-ns
Remove the Kubernetes Secrets associated with the domain.
$ kubectl -n sample-domain1-ns delete secret sample-domain1-weblogic-credentials
$ kubectl -n sample-domain1-ns delete secret sample-domain1-runtime-encryption-secret
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