Skip to content

Commit 7edd305

Browse files
authored
Merge pull request #38 from oracle/issue-37
update shutdown instructions to provide more detail
2 parents a24824f + a082710 commit 7edd305

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

site/shutdown-domain.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
To shut down a domain, issue the following command:
44

55
```
6-
kubectl delete domain DOMAINUID
6+
kubectl delete domain DOMAINUID -n NAMESPACE
77
```
88

9-
Replace `DOMAINUID` with the UID of the target domain.
9+
Replace `DOMAINUID` with the UID of the target domain and `NAMESPACE` with the namespace it is running in.
1010

1111
This command will remove the domain custom resource for the target domain. The operator will be notified that the custom resource has been removed, and it will initiate the following actions:
1212

@@ -15,3 +15,15 @@ This command will remove the domain custom resource for the target domain. The
1515
* Remove any services associated with the domain.
1616

1717
The operator will not delete any of the content on the persistent volume. This command simply shuts down the domain; it does not remove it.
18+
19+
If the load balancer option was selected, there may also be one or more load balancer deployments in the namespace that can be removed. For example, if there was one cluster in the domain, a command similar to this would be used to remove the load balancer for that cluster:
20+
21+
```
22+
kubectl delete deployment domain1-cluster-1-traefik -n domain1
23+
```
24+
25+
If there is only one domain in the namespace, then just deleting the namespace might be a faster option:
26+
27+
```
28+
kubectl delete namespace NAMESPACE
29+
```

0 commit comments

Comments
 (0)