Skip to content

Commit 7b2b3ee

Browse files
committed
Merge branch 'add-doc-for-update-domain' into v1.1
Signed-off-by: doxiao <[email protected]> Conflicts: pom.xml
2 parents a48be33 + 5b1eb3a commit 7b2b3ee

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

README.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,17 +169,45 @@ The script will remove only domain-related resources which are labeled with the
169169
kubectl -n <Namespace> label <ResourceType> <ResourceName> domainUID=<domainUID>
170170
```
171171

172-
To manually remove the persistent volume claim and the persistent volume, use these commands:
172+
By default, the domain's persistent volume claim and the persistent volume are created by the [Create WebLogic domain](kubernetes/create-weblogic-domain.sh) script, and are removed by the [Delete WebLogic domain resources](kubernetes/delete-weblogic-domain-resources.sh) script. To manually remove the persistent volume claim and the persistent volume, use these commands:
173173

174174
```
175175
kubectl delete pvc PVC-NAME -n NAMESPACE
176176
kubectl delete pv PV-NAME
177177
```
178178

179-
Find the names of the persistent volume claim (represented above as `PVC-NAME`) and the persistent volume (represented as `PV-NAME`) in the domain custom resource YAML file, or if it is not available, check for the `domainUID` in the metadata on the persistent volumes. Replace `NAMESPACE` with the namespace that the operator is running in.
179+
Find the names of the persistent volume claim (represented above as `PVC-NAME`) and the persistent volume (represented as `PV-NAME`) in the domain custom resource YAML file, or if it is not available, check for the `domainUID` in the metadata on the persistent volumes. Replace `NAMESPACE` with the namespace that the domain is running in.
180180

181181
To permanently delete the actual WebLogic domain configuration and domain home, delete the physical volume using the appropriate tools. For example, if the persistent volume used the `HostPath` provider, then delete the corresponding directory on the Kubernetes master.
182182

183+
## Updating a domain
184+
There are times when a running domain needs to be updated with modified properties.
185+
This can be achieved by following the steps below. For convenience of discussion, we assume that the domain is originally created by the following example command, where `/path/to/weblogic-operator-output-directory` is a directory that is created in advance to store the files that are generated by the operator.
186+
187+
```
188+
./create-weblogic-domain.sh \
189+
-i create-domain-job-inputs.yaml \
190+
-o /path/to/weblogic-operator-output-directory
191+
```
192+
193+
* Delete the domain using the [Delete WebLogic domain resources](kubernetes/delete-weblogic-domain-resources.sh) script.
194+
195+
```
196+
./delete-weblogic-domain-resources.sh -d <domainUID>
197+
198+
````
199+
* Delete the contents of the physical volume using the appropriate tools. See the descriptions in the previous section for removing a domain.
200+
* Delete the contents in the `weblogic-domains/<domainUID>` directory under the output directory that is specified when the domain is originally created, which is `/path/to/weblogic-operator-output-directory` in our example.
201+
* Update the create WebLogic domain inputs file `create-domain-job-inputs.yaml`.
202+
* Recreate all resources that are labeled with the `domainUID`, but are not created by the [Create WebLogic domain](kubernetes/create-weblogic-domain.sh) script. One example of such resources is the `secret` for the domain credentials, which often is created manually and may be labeled with `domainUID`. Any resources that are not labeled with the `domainUID` are not affected because they are not deleted by the [Delete WebLogic domain resources](kubernetes/delete-weblogic-domain-resources.sh) script.
203+
* Recreate the domain using the [Create WebLogic domain](kubectles/create-weblogic-domain.sh) script with the updated create WebLogic domain inputs file.
204+
205+
If for some reason the last step fails, then repeat the steps above after deleting the failed create WebLogic domain job, using the following command. The `<output-dir>` is the directory that is specified to the create WebLogic domain script via the `-o` option, which is `/path/to/weblogic-operator-output-directory` in our example if the same command is used to recreate the domain.
206+
207+
```
208+
kubectl delete -f <output-dir>/weblogic-domains/<domainUID>/create-weblogic-domain-job.yaml
209+
```
210+
183211
## Removing the operator
184212
185213
To remove the operator from a Kubernetes cluster, issue the following commands:

pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
<artifactId>maven-release-plugin</artifactId>
5454
<version>2.5.3</version>
5555
</plugin>
56-
5756
<plugin>
5857
<groupId>org.apache.maven.plugins</groupId>
5958
<artifactId>maven-javadoc-plugin</artifactId>

0 commit comments

Comments
 (0)