Thursday, April 4, 2024

Weblogic k8s operator - cleanup

 HOWTO



Run delete


dave@dave:/git/weblogic-kubernetes-operator/kubernetes/samples/scripts$ ./delete-domain/delete-weblogic-domain-resources.sh -d sample-domain1
@@ Deleting kubernetes resources with label weblogic.domainUID 'sample-domain1'.
@@ 9 resources remaining after 0 seconds, including 3 WebLogic Server pods. Max wait is 120 seconds.
@@ Setting serverStartPolicy to Never on each domain (this should cause operator(s) to initiate a controlled shutdown of the domain's pods.)
domain.weblogic.oracle/sample-domain1 patched
@@ Waiting for operator to shutdown pods (will wait for no more than half of max wait seconds before directly deleting them).
@@ 9 resources remaining after 4 seconds, including 3 WebLogic Server pods. Max wait is 120 seconds.
@@ Waiting for operator to shutdown pods (will wait for no more than half of max wait seconds before directly deleting them).
@@ 9 resources remaining after 8 seconds, including 3 WebLogic Server pods. Max wait is 120 seconds.
@@ Waiting for operator to shutdown pods (will wait for no more than half of max wait seconds before directly deleting them).
@@ 9 resources remaining after 11 seconds, including 3 WebLogic Server pods. Max wait is 120 seconds.
@@ Waiting for operator to shutdown pods (will wait for no more than half of max wait seconds before directly deleting them).
@@ 9 resources remaining after 15 seconds, including 3 WebLogic Server pods. Max wait is 120 seconds.
@@ Waiting for operator to shutdown pods (will wait for no more than half of max wait seconds before directly deleting them).
@@ 9 resources remaining after 18 seconds, including 3 WebLogic Server pods. Max wait is 120 seconds.
@@ Waiting for operator to shutdown pods (will wait for no more than half of max wait seconds before directly deleting them).
@@ 9 resources remaining after 22 seconds, including 3 WebLogic Server pods. Max wait is 120 seconds.
@@ Waiting for operator to shutdown pods (will wait for no more than half of max wait seconds before directly deleting them).
@@ 9 resources remaining after 26 seconds, including 3 WebLogic Server pods. Max wait is 120 seconds.
@@ Waiting for operator to shutdown pods (will wait for no more than half of max wait seconds before directly deleting them).
@@ 9 resources remaining after 29 seconds, including 3 WebLogic Server pods. Max wait is 120 seconds.
@@ Waiting for operator to shutdown pods (will wait for no more than half of max wait seconds before directly deleting them).
@@ 9 resources remaining after 33 seconds, including 3 WebLogic Server pods. Max wait is 120 seconds.
@@ Waiting for operator to shutdown pods (will wait for no more than half of max wait seconds before directly deleting them).
@@ 9 resources remaining after 36 seconds, including 3 WebLogic Server pods. Max wait is 120 seconds.
@@ Waiting for operator to shutdown pods (will wait for no more than half of max wait seconds before directly deleting them).
@@ 9 resources remaining after 40 seconds, including 3 WebLogic Server pods. Max wait is 120 seconds.
@@ Waiting for operator to shutdown pods (will wait for no more than half of max wait seconds before directly deleting them).
@@ 9 resources remaining after 44 seconds, including 3 WebLogic Server pods. Max wait is 120 seconds.
@@ Waiting for operator to shutdown pods (will wait for no more than half of max wait seconds before directly deleting them).
@@ 9 resources remaining after 49 seconds, including 3 WebLogic Server pods. Max wait is 120 seconds.
@@ Waiting for operator to shutdown pods (will wait for no more than half of max wait seconds before directly deleting them).
@@ 9 resources remaining after 53 seconds, including 3 WebLogic Server pods. Max wait is 120 seconds.
@@ Waiting for operator to shutdown pods (will wait for no more than half of max wait seconds before directly deleting them).
@@ 9 resources remaining after 57 seconds, including 3 WebLogic Server pods. Max wait is 120 seconds.
@@ Waiting for operator to shutdown pods (will wait for no more than half of max wait seconds before directly deleting them).
@@ 9 resources remaining after 62 seconds, including 3 WebLogic Server pods. Max wait is 120 seconds.
@@ Warning! 3 WebLogic Server pods remaining but wait time exceeds half of max wait seconds. About to directly delete all remaining resources, including the leftover pods.
pod "sample-domain1-admin-server" deleted
pod "sample-domain1-managed-server1" deleted
pod "sample-domain1-managed-server2" deleted
service "sample-domain1-admin-server" deleted
service "sample-domain1-cluster-cluster-1" deleted
service "sample-domain1-managed-server1" deleted
service "sample-domain1-managed-server2" deleted
configmap "sample-domain1-weblogic-domain-introspect-cm" deleted
domain.weblogic.oracle "sample-domain1" deleted
@@ 0 resources remaining after 77 seconds, including 0 WebLogic Server pods. Max wait is 120 seconds.
@@ Success.


No comments:

Post a Comment