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
+13-39Lines changed: 13 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,3 @@
1
-
**TODO** review and update
2
-
3
1
# Creating a WebLogic domain
4
2
5
3
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)).
@@ -21,7 +19,7 @@ Any namespaces that were listed in the `targetNamespaces` parameter in the opera
21
19
To create an additional namespace, issue the following command:
22
20
23
21
```
24
-
kubectl create namespace NAMESPACE
22
+
$ kubectl create namespace NAMESPACE
25
23
```
26
24
27
25
In this command, replace `NAMESPACE` with the desired namespace.
@@ -33,7 +31,7 @@ In this command, replace `NAMESPACE` with the desired namespace.
33
31
In order to obtain the WebLogic Server Docker image from the Docker Store, which requires authentication, a Kubernetes secret containing the registry credentials must be created. To create a secret with Docker Store credentials, issue the following command:
@@ -52,8 +50,8 @@ If you have never used the WebLogic Server image before, you will need to go to
52
50
You can let Kubernetes pull the Docker image for you the first time you try to create a pod that uses the image, but we have found that you can generally avoid various common issues, like putting the secret in the wrong namespace or getting the credentials wrong, by just manually pulling the image by running these commands *on the Kubernetes nodes*:
53
51
54
52
```
55
-
docker login
56
-
docker pull store/oracle/weblogic:12.2.1.3
53
+
$ docker login
54
+
$ docker pull store/oracle/weblogic:12.2.1.3
57
55
```
58
56
## Setting up secrets for the Administration Server credentials
59
57
@@ -62,7 +60,7 @@ The username and password credentials for access to the Administration Server mu
@@ -82,7 +80,7 @@ In a single-node Kubernetes cluster, such as may be used for testing or proof of
82
80
The persistent volume for the domain must be created using the appropriate tools before running the script to create the domain. In the simplest case, namely the `HOST_PATH` provider, this means creating a directory on the Kubernetes master and ensuring that it has the correct permissions:
For other providers, consult the provider documentation for instructions on how to create a persistent volume.
@@ -144,11 +142,14 @@ Next, choose and create a directory in which generated operator related files wi
144
142
Finally, run the create script, pointing it at your inputs file and output directory:
145
143
146
144
```
147
-
./create-weblogic-domain.sh \
145
+
$ ./create-weblogic-domain.sh -e -v \
148
146
–i create-weblogic-domain-inputs.yaml \
149
147
-o /path/to/weblogic-operator-output-directory
150
148
```
151
149
150
+
The `-e` option tells the script that it should not only create the YAML files but also apply them to the Kubernetes environment.
151
+
If you omit this option, the YAML files will be generated in the output directory and you can inspect them and apply them manually.
152
+
152
153
## What the script does
153
154
154
155
The script will perform the following steps:
@@ -246,7 +247,7 @@ The script will verify that the domain was created, and will report failure if t
246
247
To confirm that the domain resource was created, use this command:
247
248
248
249
```
249
-
kubectl describe domain DOMAINUID -n NAMESPACE
250
+
$ kubectl describe domain DOMAINUID -n NAMESPACE
250
251
```
251
252
252
253
Replace `DOMAINUID` with the `domainUID`, and replace `NAMESPACE` with the namespace that the domain was created in. The output of this command will provide details of the domain, as shown in this example:
@@ -321,7 +322,7 @@ In the `Status` section of the output, the available servers and clusters are li
321
322
Use the following command to see the pods running the servers:
Use the following command to see the Ingresses for the domain:
359
-
360
-
```
361
-
kubectl describe ing -n domain1
362
-
```
363
-
364
-
Here is an example of the output of this command:
365
-
366
-
```
367
-
$ kubectl describe ing -n domain1
368
-
Name: domain1-cluster-1
369
-
Namespace: domain1
370
-
Address:
371
-
Default backend: default-http-backend:80 (<none>)
372
-
Rules:
373
-
Host Path Backends
374
-
---- ---- --------
375
-
*
376
-
/ domain1-managed-server1:8001 (<none>)
377
-
/ domain1-managed-server2:8001 (<none>)
378
-
Annotations:
379
-
Events: <none>
380
-
```
381
-
382
-
383
357
## Configuring the domain readiness
384
358
385
359
Kubernetes has a concept of “readiness” that is used to determine when external requests should be routed to a particular pod. The domain creation job provided with the operator configures the readiness probe to use the WebLogic Server ReadyApp, which provides a mechanism to check when the server is actually ready to process work, as opposed to simply being in the `RUNNING` state. Often applications have some work to do after the server is `RUNNING` but before they are ready to process new requests.
0 commit comments