Skip to content

Commit 0d39062

Browse files
authored
Merge pull request #600 from oracle/feature/OWLS-66103
OWLS-66103, Site documentation for domain resources
2 parents deecbfa + 73ae8b9 commit 0d39062

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ The sample scripts demonstrate the creation of a WebLogic domain home on an exis
44

55
## Prerequisites
66

7+
Before you begin, read this guide, [Domain Resource](../../../../../site/domain-resource.md)
8+
79
The following prerequisites must be handled prior to running the create domain script:
810
* Make sure the WebLogic operator is running.
911
* Create a Kubernetes namespace for the domain unless the intention is to use the default namespace.
@@ -135,7 +137,7 @@ spec:
135137
domainHome: /shared/domains/domain1
136138
# If the domain home is in the image
137139
domainHomeInImage: false
138-
# The Operator currently does not support other images
140+
# The operator currently does not support other images
139141
image: "store/oracle/weblogic:19.1.0.0"
140142
# imagePullPolicy defaults to "Always" if image version is :latest
141143
imagePullPolicy: "IfNotPresent"
@@ -158,7 +160,7 @@ spec:
158160
# will be stored in the default logHome location of /shared/logs/<domainUID>/.
159161
logHome: /shared/logs/domain1
160162
# serverStartPolicy legal values are "NEVER", "ALWAYS", "IF_NEEDED", or "ADMIN_ONLY"
161-
# This determines which WebLogic Servers the Operator will start up when it discovers this Domain
163+
# This determines which WebLogic Servers the operator will start up when it discovers this Domain
162164
# - "ALWAYS" will start up all defined servers
163165
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
164166
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count

kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/create-domain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ function initialize {
223223

224224
failIfValidationErrors
225225

226-
# Parse the commonn inputs file
226+
# Parse the common inputs file
227227
parseCommonInputs
228228

229229
validateInputParamsSpecified \

site/domain-resource.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
# Domain resource
3+
4+
In this guide, we outline how to set up and configure your own domain resource which can be used to configure your WLS domain. Then, you can use the domain resource to start the Kubernetes artifacts of the corresponding domain.
5+
6+
## Prerequisites
7+
8+
The following prerequisites must be fulfilled before proceeding with the creation of the resource.
9+
* Make sure the WebLogic operator is running.
10+
* Create a Kubernetes namespace for the domain resource unless the intention is to use the default namespace.
11+
* Create the Kubernetes secrets `username` and `password` of the admin account in the same Kubernetes namespace as the domain resource.
12+
13+
# YAML files
14+
15+
Domain resources are defined using the domain resource YAML files. For each WLS domain you want to create and configure, you should create one domain resource YAML file and apply it. In the example below, you will find a domain resource YAML file template that you can use as a basis. Copy the template and override the default settings so that it matches all the WLS domain parameters that define your WLS domain.
16+
17+
For sample YAML templates, see the [Domain resource example](../kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/README.md)
18+
19+
# Kubernetes resources
20+
21+
After you have written your YAML files, please use them to create your WLS domain artifacts using the `kubectl apply -f` command.
22+
23+
```
24+
kubectl apply -f domain-resource.yaml
25+
26+
```
27+
28+
## Verify the results
29+
30+
To confirm that the domain resource was created, use this command:
31+
32+
```
33+
kubectl describe domain [domain name] -n [namespace]
34+
```

0 commit comments

Comments
 (0)