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: kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/README.md
+8-27Lines changed: 8 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ The script will perform the following steps:
27
27
* 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.
28
28
* 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.
29
29
* 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.
31
31
* 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.
32
32
* 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.
33
33
@@ -74,6 +74,7 @@ The following parameters can be provided in the inputs file.
74
74
|`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`|
75
75
|`exposeAdminNodePort`| Boolean indicating if the Administration Server is exposed outside of the Kubernetes cluster. |`false`|
76
76
|`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`|
77
78
|`initialManagedServerReplicas`| Number of Managed Servers to initially start for the domain. |`2`|
78
79
|`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`|
79
80
|`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.
84
85
|`t3ChannelPort`| Port for the T3 channel of the NetworkAccessPoint. |`30012`|
85
86
|`t3PublicAddress`| Public address for the T3 channel. |`kubernetes`|
86
87
|`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`|
88
88
89
89
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 `("-")`.
90
90
@@ -147,6 +147,12 @@ spec:
147
147
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
148
148
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
149
149
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 "
150
156
# adminServer is used to configure the desired behavior for starting the administration server.
151
157
adminServer:
152
158
# serverStartState legal values are "RUNNING" or "ADMIN"
@@ -158,37 +164,12 @@ spec:
158
164
# Uncomment to export the T3Channel as a service
159
165
# exportedNetworkAccessPoints:
160
166
# T3Channel: {}
161
-
# an (optional) list of environment variable to be set on the server
Copy file name to clipboardExpand all lines: kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/README.md
+7-11Lines changed: 7 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ The following parameters can be provided in the inputs file.
66
66
|`adminNodePort`| Port number of the Administration Server outside the Kubernetes cluster. |`30701`|
67
67
|`adminServerName`| Name of the Administration Server. |`admin-server`|
68
68
|`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`|
70
70
|`configuredManagedServerCount`| Number of Managed Server instances to generate for the domain. |`2`|
71
71
|`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`|
72
72
|`createDomainScriptsMountPath`| Mount path of the directory where the create domain scripts are located inside the pod. |`/u01/weblogic`|
@@ -163,6 +163,12 @@ spec:
163
163
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
164
164
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
165
165
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 "
166
172
# adminServer is used to configure the desired behavior for starting the administration server.
167
173
adminServer:
168
174
# serverStartState legal values are "RUNNING" or "ADMIN"
@@ -175,22 +181,12 @@ spec:
175
181
exportedNetworkAccessPoints:
176
182
T3Channel: {}
177
183
# 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 "
183
184
# clusters is used to configure the desired behavior for starting member servers of a cluster.
184
185
# If you use this entry, then the rules will be applied to ALL servers that are members of the named clusters.
185
186
clusters:
186
187
cluster-1:
187
188
serverStartState: "RUNNING"
188
189
replicas: 2
189
-
env:
190
-
- name: JAVA_OPTIONS
191
-
value: "-Dweblogic.StdoutDebugEnabled=false"
192
-
- name: USER_MEM_ARGS
193
-
value: "-Xms64m -Xmx256m "
194
190
# The number of managed servers to start for unlisted clusters
0 commit comments