You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/creating-domain.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,6 @@
4
4
5
5
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)).
6
6
7
-
Note that there is a short video demonstration of the domain creation process available [here](https://youtu.be/Ey7o8ldKv9Y).
8
-
9
7
## Important considerations and restrictions for WebLogic domains in Kubernetes
10
8
11
9
When running a WebLogic domain in Kubernetes, there are some additional considerations that must be taken into account to ensure correct functioning:
**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
-
7
3
If you are creating the domain manually, for example, using a WLST script, the domain must be configured to meet these requirements:
8
4
9
5
* 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
13
9
14
10
## Use the scripts to create the sample YAML files
15
11
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.
17
13
18
14
First, make a copy of `create-weblogic-domain-inputs.yaml` and customize it.
19
15
@@ -22,17 +18,16 @@ Next, choose and create a directory that generated operator-related files will b
22
18
Then, execute the script, pointing it at your inputs file and output directory:
23
19
24
20
```
25
-
./create-weblogic-domain.sh –g \
21
+
$ ./create-weblogic-domain.sh –g \
26
22
–i create-weblogic-domain-inputs.yaml \
27
23
-o /path/to/weblogic-operator-output-directory
28
24
```
29
25
30
26
The following YAML files will be generated in the `/path/to/weblogic-operator-output-directory/weblogic-domains/<domainUID>` directory:
31
27
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.
34
29
*`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.
36
31
37
32
## Preparing to create a persistent volume
38
33
@@ -51,54 +46,53 @@ The file `weblogic-domain-pv.yaml` contains a template to create a persistent vo
51
46
* Storage class name
52
47
* The amount of storage to allocate
53
48
* 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/WriteMany. You must use a provider that supports Read/WriteMany.
49
+
* The access mode is Read/Write/Many. You must use a provider that supports Read/Write/Many.
55
50
* The contents of the volume are retained across restarts of the Kubernetes environment.
56
51
57
52
## Creating the persistent volume
58
53
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.
64
56
65
57
To verify the persistent volume was created, use this command:
66
58
67
59
```
68
-
kubectl describe pv PV_NAME
60
+
$ kubectl describe pv PV_NAME
69
61
```
70
62
71
63
Replace `PV_NAME` with the name of the persistent volume.
72
64
73
65
## Preparing to create the persistent volume claim
74
66
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:
76
70
77
71
* Persistent volume claim name
78
72
* Namespace name
79
73
* Storage class name. This value is used to match a persistent volume with the same storage class.
80
74
* The amount of storage being claimed from the persistent volume.
81
-
* The access mode is Read/WriteMany.
75
+
* The access mode is Read/Write/Many.
82
76
83
77
## Creating the persistent volume claim
84
78
85
79
To create the persistent volume claim, issue the following command:
86
80
87
81
```
88
-
kubectl create –f weblogic-domain-pvc.yaml
82
+
$ kubectl create –f weblogic-domain-pvc.yaml
89
83
```
90
84
91
85
To verify the persistent volume was created, use this command:
92
86
93
87
```
94
-
kubectl describe pvc PVC_NAME
88
+
$ kubectl describe pvc PVC_NAME
95
89
```
96
90
97
91
Replace `PVC_NAME` with the name of the persistent volume claim.
98
92
99
93
## Preparing to create the domain resource
100
94
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:
102
96
103
97
* Domain name
104
98
* Namespace name
@@ -110,13 +104,13 @@ The file, `domain-custom-resource.yaml`, contains a template to create the domai
110
104
To create the domain resource, issue the following command:
111
105
112
106
```
113
-
kubectl create –f domain-custom-resource.yaml
107
+
$ kubectl create –f domain.yaml
114
108
```
115
109
116
110
To verify that the domain resource was created, use this command:
117
111
118
112
```
119
-
kubectl describe domain DOMAINUID –n NAMESPACE
113
+
$ kubectl describe domain DOMAINUID –n NAMESPACE
120
114
```
121
115
122
116
Replace `DOMAINUID` with the name of the domain’s domainUID and `NAMESPACE` with the namespace the domain was created in.
0 commit comments