Skip to content

Commit dda1621

Browse files
committed
OWLS-66103, Site documentation for domain resources
1 parent aeb3e2c commit dda1621

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

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

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

55
## Prerequisites
66

7+
Please read this guide before proceeding.
8+
* [Domain Resource](../../../../site/domain-resource.md)
9+
710
The following prerequisites must be handled prior to running the create domain script:
811
* Make sure the WebLogic Operator is running.
912
* Create a Kubernetes namespace for the domain unless the intention is to use the default namespace.

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: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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. The domain resource which can then be used 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 custom 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 custom resource.
12+
13+
# YAML files
14+
15+
Domain resources are defined via Domain Custom Resource YAML files. For each WLS domain you want to create and configure, you should create one Domain Custom Resource YAML file and apply it. In the example below, you will find a Domain Custom 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, please refer to this example.
18+
* [Domain Resource example](../kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/README.md)
19+
20+
# Kubernetes resources
21+
22+
After you have written your YAML files, please use them to create your WLS domain artifacts using the `kubectl apply -f` command.
23+
24+
```
25+
kubectl apply -f domain-resource.yaml
26+
27+
```
28+
29+
## Verify the results
30+
31+
To confirm that the domain custom resource was created, use this command:
32+
33+
```
34+
kubectl describe domain [domain name] -n [namespace]
35+
```

0 commit comments

Comments
 (0)