Skip to content

Commit 998ef91

Browse files
doxiaorjeberhard
authored andcommitted
Update create domain results in README
Signed-off-by: doxiao <[email protected]>
1 parent ce062d7 commit 998ef91

File tree

2 files changed

+163
-115
lines changed
  • kubernetes/samples/scripts/create-weblogic-domain

2 files changed

+163
-115
lines changed

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

Lines changed: 71 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ Note that the example results below use the `default` Kubernetes namespace. If y
141141
The content of the generated `domain.yaml`:
142142

143143
```
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+
145146
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
146147
#
147148
# This is an example of how to define a Domain resource.
@@ -160,18 +161,28 @@ spec:
160161
# If the domain home is in the image
161162
domainHomeInImage: true
162163
# 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:
166170
# Identify which Secret contains the WebLogic Admin credentials (note that there is an example of
167171
# how to create that Secret at the end of this file)
168172
webLogicCredentialsSecret:
169173
name: domain1-weblogic-credentials
170174
# Whether to include the server out file into the pod's stdout, default is true
171175
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
172183
# serverStartPolicy legal values are "NEVER", "IF_NEEDED", or "ADMIN_ONLY"
173184
# 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
175186
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
176187
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
177188
serverStartPolicy: "IF_NEEDED"
@@ -182,26 +193,34 @@ spec:
182193
value: "-Dweblogic.StdoutDebugEnabled=false"
183194
- name: USER_MEM_ARGS
184195
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
185203
# adminServer is used to configure the desired behavior for starting the administration server.
186204
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
190208
serverStartState: "RUNNING"
209+
# adminService:
210+
# channels:
191211
# The Admin Server's NodePort
192-
# nodePort: 30701
212+
# - channelName: default
213+
# nodePort: 30701
193214
# 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.
197217
# If you use this entry, then the rules will be applied to ALL servers that are members of the named clusters.
198218
clusters:
199-
cluster-1:
200-
desiredState: "RUNNING"
201-
replicas: 2
219+
- clusterName: cluster-1
220+
serverStartState: "RUNNING"
221+
replicas: 2
202222
# The number of managed servers to start for unlisted clusters
203223
# replicas: 1
204-
205224
```
206225
###
207226

@@ -223,119 +242,122 @@ Name: domain1
223242
Namespace: default
224243
Labels: weblogic.domainUID=domain1
225244
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>
227246
API Version: weblogic.oracle/v2
228247
Kind: Domain
229248
Metadata:
230249
Cluster Name:
231-
Creation Timestamp: 2018-12-17T05:58:12Z
250+
Creation Timestamp: 2019-01-10T14:29:37Z
232251
Generation: 1
233-
Resource Version: 15193
252+
Resource Version: 3698533
234253
Self Link: /apis/weblogic.oracle/v2/namespaces/default/domains/domain1
235-
UID: bce25779-01c0-11e9-baf4-0021f6985fb7
254+
UID: 28655979-14e4-11e9-b751-fa163e855ac8
236255
Spec:
237256
Admin Server:
238-
Exported Network Access Points:
239-
Node Port Annotations:
240-
Node Port Labels:
241257
Server Pod:
258+
Annotations:
242259
Container Security Context:
243260
Env:
261+
Labels:
244262
Liveness Probe:
245263
Node Selector:
246-
Pod Annotations:
247-
Pod Labels:
248264
Pod Security Context:
249265
Readiness Probe:
250266
Resources:
251267
Limits:
252268
Requests:
253-
Service Annotations:
254-
Service Labels:
255269
Volume Mounts:
256270
Volumes:
271+
Server Service:
272+
Annotations:
273+
Labels:
257274
Server Start State: RUNNING
258275
Clusters:
259276
Cluster Name: cluster-1
260-
Replicas: 2
277+
Cluster Service:
278+
Annotations:
279+
Labels:
280+
Replicas: 2
261281
Server Pod:
282+
Annotations:
262283
Container Security Context:
263284
Env:
285+
Labels:
264286
Liveness Probe:
265287
Node Selector:
266-
Pod Annotations:
267-
Pod Labels:
268288
Pod Security Context:
269289
Readiness Probe:
270290
Resources:
271291
Limits:
272292
Requests:
273-
Service Annotations:
274-
Service Labels:
275293
Volume Mounts:
276294
Volumes:
295+
Server Service:
296+
Annotations:
297+
Labels:
277298
Server Start State: RUNNING
278299
Domain Home: /u01/oracle/user_projects/domains/domain1
279300
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
282303
Include Server Out In Pod Log: true
283304
Managed Servers:
284305
Server Pod:
306+
Annotations:
285307
Container Security Context:
286308
Env:
287309
Name: JAVA_OPTIONS
288310
Value: -Dweblogic.StdoutDebugEnabled=false
289311
Name: USER_MEM_ARGS
290-
Value: -Xms64m -Xmx256m
312+
Value: -Xms64m -Xmx256m
313+
Labels:
291314
Liveness Probe:
292315
Node Selector:
293-
Pod Annotations:
294-
Pod Labels:
295316
Pod Security Context:
296317
Readiness Probe:
297318
Resources:
298319
Limits:
299320
Requests:
300-
Service Annotations:
301-
Service Labels:
302321
Volume Mounts:
303322
Volumes:
323+
Server Service:
324+
Annotations:
325+
Labels:
304326
Server Start Policy: IF_NEEDED
305327
Web Logic Credentials Secret:
306328
Name: domain1-weblogic-credentials
307329
Status:
308330
Conditions:
309-
Last Transition Time: 2018-12-17T05:59:55.227Z
331+
Last Transition Time: 2019-01-10T14:31:10.681Z
310332
Reason: ServersReady
311333
Status: True
312334
Type: Available
313335
Servers:
314336
Health:
315-
Activation Time: 2018-12-17T05:59:37.977Z
337+
Activation Time: 2019-01-10T14:30:47.432Z
316338
Overall Health: ok
317339
Subsystems:
318-
Node Name: xxxxxxxx
340+
Node Name: slc16ffk
319341
Server Name: admin-server
320342
State: RUNNING
321343
Cluster Name: cluster-1
322344
Health:
323-
Activation Time: 2018-12-17T06:01:23.764Z
345+
Activation Time: 2019-01-10T14:32:01.467Z
324346
Overall Health: ok
325347
Subsystems:
326-
Node Name: xxxxxxxx
348+
Node Name: slc16ffk
327349
Server Name: managed-server1
328350
State: RUNNING
329351
Cluster Name: cluster-1
330352
Health:
331-
Activation Time: 2018-12-17T06:01:25.393Z
353+
Activation Time: 2019-01-10T14:32:04.532Z
332354
Overall Health: ok
333355
Subsystems:
334-
Node Name: xxxxxxxx
335-
Server Name: managed-server2
356+
Node Name: slc16ffk
357+
Server Name: managed-server2
336358
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>
339361
```
340362

341363
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

Comments
 (0)