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
+69-50Lines changed: 69 additions & 50 deletions
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,7 @@ The following parameters can be provided in the inputs file.
115
115
|`initialManagedServerReplicas`| Number of Managed Servers to initially start for the domain. |`2`|
116
116
|`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`|
117
117
|`logHomeOnPV`| Specifies whether the log home is stored on the persistent volume. If set to true, then you must specify the `logHome`, `persistentVolumeClaimName` and `domainPVMountPath` parameters.|`false`|
118
-
|`logHome`| The in-pod name of the directory in which to store the domain, Node Manager, server logs, and server .out files. If not specified, the value is derived from the `domainUID` as `/shared/logs/<domainUID>`. This parameter is required if `logHomeOnPV` is true. Otherwise, it is ignored. |`/shared/logs/domain1`|
118
+
|`logHome`| The in-pod location for domain log, server logs, server out, and node manager log files. If not specified, the value is derived from the `domainUID` as `/shared/logs/<domainUID>`. This parameter is required if `logHomeOnPV` is true. Otherwise, it is ignored. |`/shared/logs/domain1`|
119
119
|`managedServerNameBase`| Base string used to generate Managed Server names. |`managed-server`|
120
120
|`managedServerPort`| Port number for each Managed Server. |`8001`|
121
121
|`namespace`| Kubernetes namespace in which to create the domain. |`default`|
@@ -141,7 +141,8 @@ Note that the example results below use the `default` Kubernetes namespace. If y
141
141
The content of the generated `domain.yaml`:
142
142
143
143
```
144
-
# Copyright 2017, 2018, Oracle Corporation and/or its affiliates. All rights reserved.
144
+
# Copyright 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
145
+
145
146
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
146
147
#
147
148
# This is an example of how to define a Domain resource.
@@ -160,18 +161,25 @@ spec:
160
161
# If the domain home is in the image
161
162
domainHomeInImage: true
162
163
# The Operator currently does not support other images
163
-
image: "domain-home-in-image:latest"
164
-
# imagePullPolicy defaults to "Never"
165
-
imagePullPolicy: "Never"
164
+
image: "domain-home-in-image"
165
+
# imagePullPolicy defaults to "Always" if image version is :latest
166
+
imagePullPolicy: "IfNotPresent"
167
+
# Identify which Secret contains the credentials for pulling an image
168
+
#imagePullSecrets:
169
+
#- name:
166
170
# Identify which Secret contains the WebLogic Admin credentials (note that there is an example of
167
171
# how to create that Secret at the end of this file)
168
172
webLogicCredentialsSecret:
169
173
name: domain1-weblogic-credentials
170
174
# Whether to include the server out file into the pod's stdout, default is true
171
175
includeServerOutInPodLog: true
176
+
# Whether to enable log home
177
+
# logHomeEnabled: false
178
+
# The in-pod location for domain log, server logs, server out, and node manager log files
179
+
# logHome: /shared/logs/domain1
172
180
# serverStartPolicy legal values are "NEVER", "IF_NEEDED", or "ADMIN_ONLY"
173
181
# This determines which WebLogic Servers the Operator will start up when it discovers this Domain
174
-
# - "NEVER" will not start any servers in the domain
182
+
# - "NEVER" will not start any server in the domain
175
183
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
176
184
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
177
185
serverStartPolicy: "IF_NEEDED"
@@ -182,26 +190,34 @@ spec:
182
190
value: "-Dweblogic.StdoutDebugEnabled=false"
183
191
- name: USER_MEM_ARGS
184
192
value: "-Xms64m -Xmx256m "
193
+
# volumes:
194
+
# - name: weblogic-domain-storage-volume
195
+
# persistentVolumeClaim:
196
+
# claimName: domain1-weblogic-sample-pvc
197
+
# volumeMounts:
198
+
# - mountPath: /shared
199
+
# name: weblogic-domain-storage-volume
185
200
# adminServer is used to configure the desired behavior for starting the administration server.
186
201
adminServer:
187
-
# serverStartState legal values are "RUNNING" or "ADMIN"
188
-
# "RUNNING" means the listed server will be started up to "RUNNING" mode
189
-
# "ADMIN" means the listed server will be start up to "ADMIN" mode
202
+
# serverStartState legal values are "RUNNING" or "ADMIN"
203
+
# "RUNNING" means the listed server will be started up to "RUNNING" mode
204
+
# "ADMIN" means the listed server will be start up to "ADMIN" mode
190
205
serverStartState: "RUNNING"
206
+
# adminService:
207
+
# channels:
191
208
# The Admin Server's NodePort
192
-
# nodePort: 30701
209
+
# - channelName: default
210
+
# nodePort: 30701
193
211
# Uncomment to export the T3Channel as a service
194
-
# exportedNetworkAccessPoints:
195
-
# T3Channel: {}
196
-
# clusters is used to configure the desired behavior for starting member servers of a cluster.
212
+
# - channelName: T3Channel
213
+
# clusters is used to configure the desired behavior for starting member servers of a cluster.
197
214
# If you use this entry, then the rules will be applied to ALL servers that are members of the named clusters.
198
215
clusters:
199
-
cluster-1:
200
-
desiredState: "RUNNING"
201
-
replicas: 2
216
+
- clusterName: cluster-1
217
+
serverStartState: "RUNNING"
218
+
replicas: 2
202
219
# The number of managed servers to start for unlisted clusters
In the `Status` section of the output, the available servers and clusters are listed. Note that if this command is issued very soon after the script finishes, there may be no servers available yet, or perhaps only the Administration Server but no Managed Servers. The operator will start up the Administration Server first and wait for it to become ready before starting the Managed Servers.
0 commit comments