Skip to content

Commit a878f8b

Browse files
committed
wip
1 parent 77050fb commit a878f8b

File tree

2 files changed

+17
-25
lines changed

2 files changed

+17
-25
lines changed

site/creating-domain.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
The WebLogic domain must be installed into the folder that will be mounted as `/shared/domain`. The recommended approach is to use the provided `create-weblogic-domain.sh` script; however, instructions are also provided for manually installing and configuring a WebLogic domain (see [Manually creating a domain](manually-creating-domain.md)).
66

7-
Note that there is a short video demonstration of the domain creation process available [here](https://youtu.be/Ey7o8ldKv9Y).
8-
97
## Important considerations and restrictions for WebLogic domains in Kubernetes
108

119
When running a WebLogic domain in Kubernetes, there are some additional considerations that must be taken into account to ensure correct functioning:

site/manually-creating-domain.md

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
**TODO** finish this
2-
31
# Manually creating a WebLogic domain
42

5-
**PLEASE NOTE**: This page is a work in progress. We have some rough notes here and are working on writing better documentation for how to set up this procedure.
6-
73
If you are creating the domain manually, for example, using a WLST script, the domain must be configured to meet these requirements:
84

95
* Domain directory should be in `/shared/domain`.
@@ -13,7 +9,7 @@ If you are creating the domain manually, for example, using a WLST script, the d
139

1410
## Use the scripts to create the sample YAML files
1511

16-
The `create-weblogic-domain.sh` script can be executed with the `-g` option, which will cause it to generate the YAML files but take no action at all against the Kubernetes environment. This is a useful way to create the sample YAML files needed to manually create a domain.
12+
The `create-weblogic-domain.sh` script can be executed without the `-e` option, which will cause it to just generate the YAML files but take no action at all against the Kubernetes environment. This is a useful way to create the sample YAML files needed to manually create a domain.
1713

1814
First, make a copy of `create-weblogic-domain-inputs.yaml` and customize it.
1915

@@ -22,17 +18,16 @@ Next, choose and create a directory that generated operator-related files will b
2218
Then, execute the script, pointing it at your inputs file and output directory:
2319

2420
```
25-
./create-weblogic-domain.sh –g \
21+
$ ./create-weblogic-domain.sh –g \
2622
–i create-weblogic-domain-inputs.yaml \
2723
-o /path/to/weblogic-operator-output-directory
2824
```
2925

3026
The following YAML files will be generated in the `/path/to/weblogic-operator-output-directory/weblogic-domains/<domainUID>` directory:
3127

32-
* `weblogic-domain-pv.yaml` can be customized and used to create the persistent volume for this domain.
33-
* `weblogic-domain-pvc.yaml` can be customized and used to create the persistent volume claim for this domain.
28+
* `domain.yaml` can be customized and used to create the domain custom resource.
3429
* `create-weblogic-domain-job.yaml` can be ignored when creating the domain manually.
35-
* `domain-custom-resource.yaml` can be customized and used to create the domain resource.
30+
* `delete-domain-job.yaml` can be used to delete a domain, and can also be ignored when creating the domain manually.
3631

3732
## Preparing to create a persistent volume
3833

@@ -51,54 +46,53 @@ The file `weblogic-domain-pv.yaml` contains a template to create a persistent vo
5146
* Storage class name
5247
* The amount of storage to allocate
5348
* The physical location of the persistent volume (edit). Prior to creating the persistent volume, you need to ensure this location exists and has read/write/execute permissions set for the account that Kubernetes is running from.
54-
* The access mode is Read/Write Many. You must use a provider that supports Read/Write Many.
49+
* The access mode is Read/Write/Many. You must use a provider that supports Read/Write/Many.
5550
* The contents of the volume are retained across restarts of the Kubernetes environment.
5651

5752
## Creating the persistent volume
5853

59-
To create the persistent volume, issue the following command:
60-
61-
```
62-
kubectl create –f weblogic-domain-pv.yaml
63-
```
54+
The [sample](/kubernetes/samples/scripts/create-weblogic-domain-pv-pvc/README.md) dmonstrates how to create
55+
the persistent volume and persistent volume claim. These must be created before continuing.
6456

6557
To verify the persistent volume was created, use this command:
6658

6759
```
68-
kubectl describe pv PV_NAME
60+
$ kubectl describe pv PV_NAME
6961
```
7062

7163
Replace `PV_NAME` with the name of the persistent volume.
7264

7365
## Preparing to create the persistent volume claim
7466

75-
The file, `weblogic-domain-pvc.yaml`, contains a template to claim a portion of the persistent volume storage. The customizable items are:
67+
The [sample](/kubernetes/samples/scripts/create-weblogic-domain-pv-pvc/README.md) dmonstrates how to create
68+
the persistent volume and persistent volume claim. These must be created before continuing.
69+
The customizable items are:
7670

7771
* Persistent volume claim name
7872
* Namespace name
7973
* Storage class name. This value is used to match a persistent volume with the same storage class.
8074
* The amount of storage being claimed from the persistent volume.
81-
* The access mode is Read/Write Many.
75+
* The access mode is Read/Write/Many.
8276

8377
## Creating the persistent volume claim
8478

8579
To create the persistent volume claim, issue the following command:
8680

8781
```
88-
kubectl create –f weblogic-domain-pvc.yaml
82+
$ kubectl create –f weblogic-domain-pvc.yaml
8983
```
9084

9185
To verify the persistent volume was created, use this command:
9286

9387
```
94-
kubectl describe pvc PVC_NAME
88+
$ kubectl describe pvc PVC_NAME
9589
```
9690

9791
Replace `PVC_NAME` with the name of the persistent volume claim.
9892

9993
## Preparing to create the domain resource
10094

101-
The file, `domain-custom-resource.yaml`, contains a template to create the domain resource. The customizable items are:
95+
The file, `domain.yaml`, contains a template to create the domain resource. The customizable items are:
10296

10397
* Domain name
10498
* Namespace name
@@ -110,13 +104,13 @@ The file, `domain-custom-resource.yaml`, contains a template to create the domai
110104
To create the domain resource, issue the following command:
111105

112106
```
113-
kubectl create –f domain-custom-resource.yaml
107+
$ kubectl create –f domain.yaml
114108
```
115109

116110
To verify that the domain resource was created, use this command:
117111

118112
```
119-
kubectl describe domain DOMAINUID –n NAMESPACE
113+
$ kubectl describe domain DOMAINUID –n NAMESPACE
120114
```
121115

122116
Replace `DOMAINUID` with the name of the domain’s domainUID and `NAMESPACE` with the namespace the domain was created in.

0 commit comments

Comments
 (0)