@@ -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,28 @@ 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 name of the directory to store the domain, node manager, server logs, and server .out
179
+ # files in.
180
+ # If not specified or empty, domain log file, server logs, server out, and node manager log files
181
+ # will be stored in the default logHome location of /shared/logs/<domainUID>/.
182
+ # logHome: /shared/logs/domain1
172
183
# serverStartPolicy legal values are "NEVER", "IF_NEEDED", or "ADMIN_ONLY"
173
184
# 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
185
+ # - "NEVER" will not start any server in the domain
175
186
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
176
187
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
177
188
serverStartPolicy: "IF_NEEDED"
@@ -182,26 +193,34 @@ spec:
182
193
value: "-Dweblogic.StdoutDebugEnabled=false"
183
194
- name: USER_MEM_ARGS
184
195
value: "-Xms64m -Xmx256m "
196
+ # volumes:
197
+ # - name: weblogic-domain-storage-volume
198
+ # persistentVolumeClaim:
199
+ # claimName: domain1-weblogic-sample-pvc
200
+ # volumeMounts:
201
+ # - mountPath: /shared
202
+ # name: weblogic-domain-storage-volume
185
203
# adminServer is used to configure the desired behavior for starting the administration server.
186
204
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
205
+ # serverStartState legal values are "RUNNING" or "ADMIN"
206
+ # "RUNNING" means the listed server will be started up to "RUNNING" mode
207
+ # "ADMIN" means the listed server will be start up to "ADMIN" mode
190
208
serverStartState: "RUNNING"
209
+ # adminService:
210
+ # channels:
191
211
# The Admin Server's NodePort
192
- # nodePort: 30701
212
+ # - channelName: default
213
+ # nodePort: 30701
193
214
# 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.
215
+ # - channelName: T3Channel
216
+ # clusters is used to configure the desired behavior for starting member servers of a cluster.
197
217
# If you use this entry, then the rules will be applied to ALL servers that are members of the named clusters.
198
218
clusters:
199
- cluster-1:
200
- desiredState : "RUNNING"
201
- replicas: 2
219
+ - clusterName: cluster-1
220
+ serverStartState : "RUNNING"
221
+ replicas: 2
202
222
# The number of managed servers to start for unlisted clusters
203
223
# replicas: 1
204
-
205
224
```
206
225
###
207
226
@@ -223,119 +242,122 @@ Name: domain1
223
242
Namespace: default
224
243
Labels: weblogic.domainUID=domain1
225
244
weblogic.resourceVersion=domain-v2
226
- Annotations: kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"weblogic.oracle/v2","kind":"Domain","metadata":{"annotations":{},"labels":{"weblogic.domainUID":"domain1","weblogic.resourceVersion":"do...
245
+ Annotations: <none>
227
246
API Version: weblogic.oracle/v2
228
247
Kind: Domain
229
248
Metadata:
230
249
Cluster Name:
231
- Creation Timestamp: 2018-12-17T05:58:12Z
250
+ Creation Timestamp: 2019-01-10T14:29:37Z
232
251
Generation: 1
233
- Resource Version: 15193
252
+ Resource Version: 3698533
234
253
Self Link: /apis/weblogic.oracle/v2/namespaces/default/domains/domain1
235
- UID: bce25779-01c0 -11e9-baf4-0021f6985fb7
254
+ UID: 28655979-14e4 -11e9-b751-fa163e855ac8
236
255
Spec:
237
256
Admin Server:
238
- Exported Network Access Points:
239
- Node Port Annotations:
240
- Node Port Labels:
241
257
Server Pod:
258
+ Annotations:
242
259
Container Security Context:
243
260
Env:
261
+ Labels:
244
262
Liveness Probe:
245
263
Node Selector:
246
- Pod Annotations:
247
- Pod Labels:
248
264
Pod Security Context:
249
265
Readiness Probe:
250
266
Resources:
251
267
Limits:
252
268
Requests:
253
- Service Annotations:
254
- Service Labels:
255
269
Volume Mounts:
256
270
Volumes:
271
+ Server Service:
272
+ Annotations:
273
+ Labels:
257
274
Server Start State: RUNNING
258
275
Clusters:
259
276
Cluster Name: cluster-1
260
- Replicas: 2
277
+ Cluster Service:
278
+ Annotations:
279
+ Labels:
280
+ Replicas: 2
261
281
Server Pod:
282
+ Annotations:
262
283
Container Security Context:
263
284
Env:
285
+ Labels:
264
286
Liveness Probe:
265
287
Node Selector:
266
- Pod Annotations:
267
- Pod Labels:
268
288
Pod Security Context:
269
289
Readiness Probe:
270
290
Resources:
271
291
Limits:
272
292
Requests:
273
- Service Annotations:
274
- Service Labels:
275
293
Volume Mounts:
276
294
Volumes:
295
+ Server Service:
296
+ Annotations:
297
+ Labels:
277
298
Server Start State: RUNNING
278
299
Domain Home: /u01/oracle/user_projects/domains/domain1
279
300
Domain Home In Image: true
280
- Image: domain-home-in-image:latest
281
- Image Pull Policy: Never
301
+ Image: domain-home-in-image
302
+ Image Pull Policy: IfNotPresent
282
303
Include Server Out In Pod Log: true
283
304
Managed Servers:
284
305
Server Pod:
306
+ Annotations:
285
307
Container Security Context:
286
308
Env:
287
309
Name: JAVA_OPTIONS
288
310
Value: -Dweblogic.StdoutDebugEnabled=false
289
311
Name: USER_MEM_ARGS
290
- Value: -Xms64m -Xmx256m
312
+ Value: -Xms64m -Xmx256m
313
+ Labels:
291
314
Liveness Probe:
292
315
Node Selector:
293
- Pod Annotations:
294
- Pod Labels:
295
316
Pod Security Context:
296
317
Readiness Probe:
297
318
Resources:
298
319
Limits:
299
320
Requests:
300
- Service Annotations:
301
- Service Labels:
302
321
Volume Mounts:
303
322
Volumes:
323
+ Server Service:
324
+ Annotations:
325
+ Labels:
304
326
Server Start Policy: IF_NEEDED
305
327
Web Logic Credentials Secret:
306
328
Name: domain1-weblogic-credentials
307
329
Status:
308
330
Conditions:
309
- Last Transition Time: 2018-12-17T05:59:55.227Z
331
+ Last Transition Time: 2019-01-10T14:31:10.681Z
310
332
Reason: ServersReady
311
333
Status: True
312
334
Type: Available
313
335
Servers:
314
336
Health:
315
- Activation Time: 2018-12-17T05:59:37.977Z
337
+ Activation Time: 2019-01-10T14:30:47.432Z
316
338
Overall Health: ok
317
339
Subsystems:
318
- Node Name: xxxxxxxx
340
+ Node Name: slc16ffk
319
341
Server Name: admin-server
320
342
State: RUNNING
321
343
Cluster Name: cluster-1
322
344
Health:
323
- Activation Time: 2018-12-17T06:01:23.764Z
345
+ Activation Time: 2019-01-10T14:32:01.467Z
324
346
Overall Health: ok
325
347
Subsystems:
326
- Node Name: xxxxxxxx
348
+ Node Name: slc16ffk
327
349
Server Name: managed-server1
328
350
State: RUNNING
329
351
Cluster Name: cluster-1
330
352
Health:
331
- Activation Time: 2018-12-17T06:01:25.393Z
353
+ Activation Time: 2019-01-10T14:32:04.532Z
332
354
Overall Health: ok
333
355
Subsystems:
334
- Node Name: xxxxxxxx
335
- Server Name: managed-server2
356
+ Node Name: slc16ffk
357
+ Server Name: managed-server2
336
358
State: RUNNING
337
- Start Time: 2018-12-17T05:58:12.615Z
338
- Events: <none>
359
+ Start Time: 2019-01-10T14:29:37.455Z
360
+ Events: <none>
339
361
```
340
362
341
363
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