Skip to content

Commit 8876198

Browse files
committed
Improve create -o documentation
1 parent 6e61515 commit 8876198

File tree

4 files changed

+37
-27
lines changed

4 files changed

+37
-27
lines changed

site/creating-domain.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ For other providers, consult the documentation for the provider for instructions
8989

9090
## Customizing the domain parameters file
9191

92-
The domain is created with the provided installation script (`create-weblogic-domain.sh`). The input to this script is the file `create-weblogic-domain-inputs.yaml`, which needs to be updated to reflect the target environment.
92+
The domain is created with the provided installation script (`create-weblogic-domain.sh`). The input to this script is the file `create-weblogic-domain-inputs.yaml`, which must be copied and updated to reflect the target environment.
9393

9494
The following parameters must be provided in the input file:
9595

@@ -125,6 +125,8 @@ The following parameters must be provided in the input file:
125125
| weblogicDomainStorageNFSServer| The name of ip address of the NFS server for the weblogic domain's storage. | no default |
126126
| weblogicImagePullSecretName | Name of the Kubernetes secret for the Docker Store, used to pull the WebLogic Server image. | docker-store-secret |
127127

128+
You must uncomment and customize `domainUID` and `weblogicDomainStoratePath`.
129+
128130
## Limitations of the create domain script
129131

130132
This technology preview release has some limitations in the create domain script that users should be aware of.
@@ -136,11 +138,11 @@ Oracle intends to remove these limitations in a future release.
136138

137139
## Using the script to create a domain
138140

139-
To execute the script and create a domain, issue the following command:
141+
At this point, you've created a customized copy of the inputs file.
140142

141-
```
142-
# Choose and create a directory that generated weblogic operator related files will be stored in,
143-
# e.g. /path/to/weblogic-operator-output-directory
143+
Next, choose and create a directory that generated weblogic operator related files will be stored in, e.g. /path/to/weblogic-operator-output-directory.
144+
145+
Finally, run the create script, pointing it at your inputs file and output directory:
144146

145147
./create-weblogic-domain.sh \
146148
–i create-domain-job-inputs.yaml \
@@ -151,7 +153,7 @@ To execute the script and create a domain, issue the following command:
151153
152154
The script will perform the following steps:
153155
154-
* Create a directory for the generated Kubernetes YAML files for this domain. The pathname is /path/to/weblogic-operator-output-directory/weblogic-domains/<domainUID parameter from create-weblogic-domain-inputs.yaml.
156+
* Create a directory for the generated Kubernetes YAML files for this domain. The pathname is /path/to/weblogic-operator-output-directory/weblogic-domains/<domainUID>.
155157
* Create Kubernetes YAML files based on the provided inputs.
156158
* Create a persistent volume for the shared state.
157159
* Create a persistent volume claim for that volume.

site/developer.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,15 @@ To run the tests, uncomment the following `execution` element in the `pom.xml` f
7373
-->
7474
```
7575

76-
These tests assume that the RBAC definitions exist on the Kubernetes cluster. To create them, update the inputs file and run the operator installation script with the "generate only" option as shown below (see the [installation](installation.md) page for details about this script and the inputs):
76+
These tests assume that the RBAC definitions exist on the Kubernetes cluster.
7777

78-
```
79-
# Choose and create a directory that generated weblogic operator related files will be stored in,
80-
# e.g. /path/to/weblogic-operator-output-directory
78+
To create them, first, make a copy of the inputs file (`create-weblogic-operator-inputs.yaml`) and update it.
79+
80+
Next, choose and create a directory that generated weblogic operator related files will be stored in, e.g. /path/to/weblogic-operator-output-directory.
8181

82+
Finally, run the operator installation script with the "generate only" option as shown below, pointing it at your inputs file and your output directory. (see the [installation](installation.md) page for details about this script and the inputs):
83+
84+
```
8285
./create-weblogic-operator.sh -g \
8386
-i create-weblogic-operator-inputs.yaml \
8487
-o /path/to/weblogic-operator-output-directory
@@ -124,14 +127,15 @@ docker load < /some/path/operator.tar
124127

125128
Verify that you have the right image by running `docker images | grep webloogic-kubernetes-operator` on both machines and comparing the image ID.
126129

127-
To create the Kuberentes YAML file to deploy the operator, update the inputs file (`create-weblogic-operator-inputs.yaml`) and make sure the `imagePullPolicy` is set to `Never` and the `image` matches the name you used in your `docker build` command. Then run the operator installation script to deploy the operator:
130+
To create and deploy the operator, first, make a copy of the inputs file (`create-weblogic-operator-inputs.yaml`) and update it, making sure that `weblogicOperatorImagePullPolicy` is set to `Never` and `weblogicOperatorImage` matches the name you used in your `docker build` command.
128131

129-
```
130-
# Choose and create a directory that generated weblogic operator related files will be stored in,
131-
# e.g. /path/to/weblogic-operator-output-directory
132+
Next, choose and create a directory that generated weblogic operator related files will be stored in, e.g. /path/to/weblogic-operator-output-directory.
133+
134+
Finally, run the operator installation script to deploy the operator, pointing it at your inputs file and your output directory:
132135

136+
```
133137
./create-weblogic-operator.sh \
134-
-i create-weblogic-operator-inputs.yaml \
138+
-i /path/to/create-weblogic-operator-inputs.yaml \
135139
-o /path/to/weblogic-operator-output-directory
136140
```
137141

site/installation.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ Verify that you have the right image by running `docker images | grep webloogic-
6262

6363
## Customizing the operator parameters file
6464

65-
The operator is deployed with the provided installation script (`create-weblogic-operator.sh`). The input to this script is the file `create-weblogic-operator-inputs.yaml`, which needs to updated to reflect the target environment.
66-
67-
The following parameters must be provided in the input file:
65+
The operator is deployed with the provided installation script (`create-weblogic-operator.sh`). The default input to this script is the file `create-weblogic-operator-inputs.yaml`. It contains the following parameters:
6866

6967
### CONFIGURATION PARAMETERS FOR THE OPERATOR
7068

@@ -87,6 +85,8 @@ The following parameters must be provided in the input file:
8785
| weblogicOperatorImagePullPolicy | The image pull policy for the operator docker image. Allowed values are 'Always', 'Never' and 'IfNotPresent' | IfNotPresent |
8886
| weblogicOperatorImagePullSecretName | Name of the Kubernetes secret to access the Docker Store to pull the WebLogic Server Docker image. The presence of the secret will be validated when this parameter is enabled. | |
8987

88+
Review the default values to see if any need to be updated to reflect the target environment. If so, then make a copy of the input file and modify it. Otherwise, you can use the default input file.
89+
9090
## Decide which REST configuration to use
9191

9292
The operator provides three REST certificate options:
@@ -119,14 +119,15 @@ To enable the ELK integration, set the `elkIntegrationEnabled` option to `true`.
119119

120120
## Deploying the operator to a Kubernetes cluster
121121

122-
To deploy the operator, run the deployment script and give it the location of your inputs file:
122+
At this point, you've created a custom inputs file, or you've decided to use the default one.
123123

124-
```
125-
# Choose and create a directory that generated weblogic operator related files will be stored in,
126-
# e.g. /path/to/weblogic-operator-output-directory
124+
Next, choose and create a directory that generated weblogic operator related files will be stored in, e.g. /path/to/weblogic-operator-output-directory.
127125

126+
Finally, run the operator installation script to deploy the operator, pointing it at your inputs file and your output directory:
127+
128+
```
128129
./create-weblogic-operator.sh \
129-
i /path/to/create-weblogic-operator-inputs.yaml \
130+
-i /path/to/create-weblogic-operator-inputs.yaml \
130131
-o /path/to/weblogic-operator-output-directory
131132
```
132133

site/manually-creating-domain.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ If creating the domain manually, using a WLST script for example, the domain mus
1111

1212
## Use the scripts to create the sample YAML files
1313

14-
The `create-weblogic-domain.sh` script described in the previous section 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. Execute the script as follows:
14+
The `create-weblogic-domain.sh` script described in the previous section 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.
1515

16-
```
17-
# Choose and create a directory that generated weblogic operator related files will be stored in,
18-
# e.g. /path/to/weblogic-operator-output-directory
16+
First, make a copy of `create-weblogic-domain-inputs.yaml` and customize it.
17+
18+
Next, choose and create a directory that generated weblogic operator related files will be stored in, e.g. /path/to/weblogic-operator-output-directory
1919

20+
Then, execute the script, pointing it at your inputs file and output directory:
21+
22+
```
2023
./create-weblogic-domain.sh –g \
2124
–i create-weblogic-domain-inputs.yaml \
2225
-o /path/to/weblogic-operator-output-directory

0 commit comments

Comments
 (0)