Skip to content

Commit 999f72a

Browse files
committed
Update README.md files
Signed-off-by: doxiao <[email protected]>
1 parent 91d1d72 commit 999f72a

File tree

4 files changed

+17
-40
lines changed

4 files changed

+17
-40
lines changed

kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/README.md

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The script will perform the following steps:
2727
* Create a directory for the generated properties and Kubernetes YAML files for this domain if it does not already exist. The pathname is `/path/to/weblogic-operator-output-directory/weblogic-domains/<domainUID>`. Note that the script fails if the directory is not empty when the `create-domain.sh` script is executed.
2828
* Create a proerties file, `domain.properties`, in the directory that is created above. This properties file will be used to create a sample WebLogic Server domain.
2929
* Clone the weblogic docker-images project via the `git clone https://github.com/oracle/docker-images.git` into the current directory.
30-
* Replace the built-in username and password in the properties/docker_build/domain_security.properties file with the `username` and `password` that are supplied in the command line via the `-u` and `-p` options. These credentials need to match the WebLogic domain admin credentials in the secret that is specified via `weblogicCredentialsSecretName` property in the `create-domain-inputs.yaml` file.
30+
* Replace the built-in username and password in the `properties/docker_build/domain_security.properties` file with the `username` and `password` that are supplied in the command line via the `-u` and `-p` options. These credentials need to match the WebLogic domain admin credentials in the secret that is specified via `weblogicCredentialsSecretName` property in the `create-domain-inputs.yaml` file.
3131
* Build Docker image based on Docker sample [Example Image with a WebLogic Server Domain](https://github.com/oracle/docker-images/tree/master/OracleWebLogic/samples/12213-domain-home-in-image). It will create a sample WebLogic Server domain into the Docker image. You can also run the Docker sample [Example Image with a WebLogic Server Domain](https://github.com/oracle/docker-images/tree/master/OracleWebLogic/samples/12213-domain-home-in-image) manually with the generated `domain.properties` to create domain home image. Note: Oracle recommends keeping the domain home image private in the local repository.
3232
* Create a Kubernetes domain YAML file, `domain.yaml`, in the directory that is created above. This YAML file can be used to create the Kubernetes resource using the `kubectl create -f` or `kubectl apply -f` command.
3333

@@ -74,6 +74,7 @@ The following parameters can be provided in the inputs file.
7474
| `domainUID` | Unique ID that will be used to identify this particular domain. Used as the name of the generated WebLogic domain as well as the name of the Kubernetes domain resource. This ID must be unique across all domains in a Kubernetes cluster. This ID cannot contain any character that is not valid in a Kubernetes service name. | `domain1` |
7575
| `exposeAdminNodePort` | Boolean indicating if the Administration Server is exposed outside of the Kubernetes cluster. | `false` |
7676
| `exposeAdminT3Channel` | Boolean indicating if the T3 administrative channel is exposed outside the Kubernetes cluster. | `false` |
77+
| `includeServerOutInPodLog` | Boolean indicating whether to include server .out to the pod's stdout. | `true` |
7778
| `initialManagedServerReplicas` | Number of Managed Servers to initially start for the domain. | `2` |
7879
| `javaOptions` | Java options for starting the Administration and Managed Servers. A Java option can have references to one or more of the following pre-defined variables to obtain WebLogic domain information: `$(DOMAIN_NAME)`, `$(DOMAIN_HOME)`, `$(ADMIN_NAME)`, `$(ADMIN_PORT)`, and `$(SERVER_NAME)`. | `-Dweblogic.StdoutDebugEnabled=false` |
7980
| `managedServerNameBase` | Base string used to generate Managed Server names. | `managed-server` |
@@ -84,7 +85,6 @@ The following parameters can be provided in the inputs file.
8485
| `t3ChannelPort` | Port for the T3 channel of the NetworkAccessPoint. | `30012` |
8586
| `t3PublicAddress` | Public address for the T3 channel. | `kubernetes` |
8687
| `weblogicCredentialsSecretName` | Name of the Kubernetes secret for the Administration Server's username and password. | `domain1-weblogic-credentials` |
87-
| `includeServerOutInPodLog` | Boolean indicating whether to include server .out to the pod's stdout. | `true` |
8888

8989
Note that the names of the Kubernetes resources in the generated YAML files may be formed with the value of some of the properties specified in the `create-inputs.yaml` file. Those properties include the `adminServerName`, `clusterName` and `managedServerNameBase`. If those values contain any characters that are invalid in a Kubernetes service name, those characters are converted to valid values in the generated YAML files. For example, an uppercase letter is converted to a lowercase letter and an underscore `("_")` is converted to a hyphen `("-")`.
9090

@@ -147,6 +147,12 @@ spec:
147147
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
148148
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
149149
serverStartPolicy: "IF_NEEDED"
150+
# an (optional) list of environment variable to be set on the servers
151+
env:
152+
- name: JAVA_OPTIONS
153+
value: "-Dweblogic.StdoutDebugEnabled=false"
154+
- name: USER_MEM_ARGS
155+
value: "-Xms64m -Xmx256m "
150156
# adminServer is used to configure the desired behavior for starting the administration server.
151157
adminServer:
152158
# serverStartState legal values are "RUNNING" or "ADMIN"
@@ -158,37 +164,12 @@ spec:
158164
# Uncomment to export the T3Channel as a service
159165
# exportedNetworkAccessPoints:
160166
# T3Channel: {}
161-
# an (optional) list of environment variable to be set on the server
162-
env:
163-
- name: JAVA_OPTIONS
164-
value: "-Dweblogic.StdoutDebugEnabled=false"
165-
- name: USER_MEM_ARGS
166-
value: "-Xms64m -Xmx256m "
167-
volumes:
168-
- name: runtime-properties
169-
hostPath:
170-
path: "/scratch/weblogic-kubernetes-operator/kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/docker-images/OracleWebLogic/samples/12213-domain-home-in-image/properties/docker_run"
171-
volumeMounts:
172-
- name: runtime-properties
173-
mountPath: "/u01/oracle/properties"
174167
# clusters is used to configure the desired behavior for starting member servers of a cluster.
175168
# If you use this entry, then the rules will be applied to ALL servers that are members of the named clusters.
176169
clusters:
177170
cluster-1:
178171
desiredState: "RUNNING"
179172
replicas: 2
180-
env:
181-
- name: JAVA_OPTIONS
182-
value: "-Dweblogic.StdoutDebugEnabled=false"
183-
- name: USER_MEM_ARGS
184-
value: "-Xms64m -Xmx256m "
185-
volumes:
186-
- name: runtime-properties
187-
hostPath:
188-
path: "/scratch/weblogic-kubernetes-operator/kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/docker-images/OracleWebLogic/samples/12213-domain-home-in-image/properties/docker_run"
189-
volumeMounts:
190-
- name: runtime-properties
191-
mountPath: "/u01/oracle/properties"
192173
# The number of managed servers to start for unlisted clusters
193174
# replicas: 1
194175

kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/domain-template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ spec:
4444
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
4545
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
4646
serverStartPolicy: "%SERVER_START_POLICY%"
47+
# an (optional) list of environment variable to be set on the servers
4748
env:
4849
- name: JAVA_OPTIONS
4950
value: "%JAVA_OPTIONS%"
@@ -60,7 +61,6 @@ spec:
6061
# Uncomment to export the T3Channel as a service
6162
%EXPOSE_T3_CHANNEL_PREFIX%exportedNetworkAccessPoints:
6263
%EXPOSE_T3_CHANNEL_PREFIX% T3Channel: {}
63-
# an (optional) list of environment variable to be set on the server
6464
# clusters is used to configure the desired behavior for starting member servers of a cluster.
6565
# If you use this entry, then the rules will be applied to ALL servers that are members of the named clusters.
6666
clusters:

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

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ The following parameters can be provided in the inputs file.
6666
| `adminNodePort` | Port number of the Administration Server outside the Kubernetes cluster. | `30701` |
6767
| `adminServerName` | Name of the Administration Server. | `admin-server` |
6868
| `clusterName` | Name of the WebLogic cluster instance to generate for the domain. | `cluster-1` |
69-
| `clusterType` | Type of WebLogic Cluster. Legal values are `CONFIGURED` or `DYNAMIC`. | `DYNAMIC` |
69+
| `clusterType` | Type of the WebLogic Cluster. Legal values are `CONFIGURED` or `DYNAMIC`. | `DYNAMIC` |
7070
| `configuredManagedServerCount` | Number of Managed Server instances to generate for the domain. | `2` |
7171
| `createDomainFilesDir` | Directory to get all the create domain scripts and supporting files, including the script that is specified by the `createDomainScriptName` property. By default, this directory is set to the relative path `wlst`, and the create script will use the built-in WLST offline scripts in the `wlst` directory to create the WebLogic domain. It can also be set to the relative path `wdt`, and then the built-in WDT scripts will be used instead. An absolute path is also supported to point to an arbitrary directory in the file system. | `wlst` |
7272
| `createDomainScriptsMountPath` | Mount path of the directory where the create domain scripts are located inside the pod. | `/u01/weblogic` |
@@ -163,6 +163,12 @@ spec:
163163
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
164164
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
165165
serverStartPolicy: "IF_NEEDED"
166+
# an (optional) list of environment variable to be set on the servers
167+
env:
168+
- name: JAVA_OPTIONS
169+
value: "-Dweblogic.StdoutDebugEnabled=false"
170+
- name: USER_MEM_ARGS
171+
value: "-Xms64m -Xmx256m "
166172
# adminServer is used to configure the desired behavior for starting the administration server.
167173
adminServer:
168174
# serverStartState legal values are "RUNNING" or "ADMIN"
@@ -175,22 +181,12 @@ spec:
175181
exportedNetworkAccessPoints:
176182
T3Channel: {}
177183
# an (optional) list of environment variable to be set on the server
178-
env:
179-
- name: JAVA_OPTIONS
180-
value: "-Dweblogic.StdoutDebugEnabled=false"
181-
- name: USER_MEM_ARGS
182-
value: "-Xms64m -Xmx256m "
183184
# clusters is used to configure the desired behavior for starting member servers of a cluster.
184185
# If you use this entry, then the rules will be applied to ALL servers that are members of the named clusters.
185186
clusters:
186187
cluster-1:
187188
serverStartState: "RUNNING"
188189
replicas: 2
189-
env:
190-
- name: JAVA_OPTIONS
191-
value: "-Dweblogic.StdoutDebugEnabled=false"
192-
- name: USER_MEM_ARGS
193-
value: "-Xms64m -Xmx256m "
194190
# The number of managed servers to start for unlisted clusters
195191
# replicas: 1
196192
storage:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ spec:
5353
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
5454
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
5555
serverStartPolicy: "%SERVER_START_POLICY%"
56-
# an (optional) list of environment variable to be set on the server
56+
# an (optional) list of environment variable to be set on the servers
5757
env:
5858
- name: JAVA_OPTIONS
5959
value: "%JAVA_OPTIONS%"

0 commit comments

Comments
 (0)