@@ -37,7 +37,7 @@ The usage of the create script is as follows:
3737
3838```
3939$ sh create-domain.sh -h
40- usage: create-domain.sh -o dir -i file -u username -p password [-s ] [-e] [-h]
40+ usage: create-domain.sh -o dir -i file -u username -p password [-k ] [-e] [-h]
4141 -i Parameter inputs file, must be specified.
4242 -o Ouput directory for the generated properties and YAML files, must be specified.
4343 -u Username used in building the Docker image for WebLogic domain in image.
@@ -133,9 +133,9 @@ spec:
133133 name: domain1-weblogic-credentials
134134 # Whether to include the server out file into the pod's stdout, default is true
135135 includeServerOutInPodLog: true
136- # serverStartPolicy legal values are "NEVER", "ALWAYS", " IF_NEEDED", or "ADMIN_ONLY"
136+ # serverStartPolicy legal values are "NEVER", "IF_NEEDED", or "ADMIN_ONLY"
137137 # This determines which WebLogic Servers the Operator will start up when it discovers this Domain
138- # - "ALWAYS " will start up all defined servers
138+ # - "NEVER " will not start any servers in the domain
139139 # - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
140140 # - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
141141 serverStartPolicy: "IF_NEEDED"
@@ -186,19 +186,17 @@ Name: domain1
186186Namespace: default
187187Labels: weblogic.domainUID=domain1
188188 weblogic.resourceVersion=domain-v2
189- Annotations: <none>
189+ Annotations: kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"weblogic.oracle/v2","kind":"Domain","metadata":{"annotations":{},"labels":{"weblogic.domainUID":"domain1","weblogic.resourceVersion":"do...
190190API Version: weblogic.oracle/v2
191191Kind: Domain
192192Metadata:
193193 Cluster Name:
194- Creation Timestamp: 2018-12-11T21:27:35Z
194+ Creation Timestamp: 2018-12-17T05:58:12Z
195195 Generation: 1
196- Resource Version: 814010
196+ Resource Version: 15193
197197 Self Link: /apis/weblogic.oracle/v2/namespaces/default/domains/domain1
198- UID: 93e55739-fd8b-11e8-b751-fa163e855ac8
198+ UID: bce25779-01c0-11e9-baf4-0021f6985fb7
199199Spec:
200- Admin Secret:
201- Name: domain1-weblogic-credentials
202200 Admin Server:
203201 Exported Network Access Points:
204202 Node Port Annotations:
@@ -221,25 +219,25 @@ Spec:
221219 Volumes:
222220 Server Start State: RUNNING
223221 Clusters:
224- Cluster - 1:
225- Replicas: 2
226- Server Pod:
227- Container Security Context:
228- Env:
229- Liveness Probe:
230- Node Selector:
231- Pod Annotations:
232- Pod Labels:
233- Pod Security Context:
234- Readiness Probe:
235- Resources:
236- Limits:
237- Requests:
238- Service Annotations:
239- Service Labels:
240- Volume Mounts:
241- Volumes:
242- Server Start State: RUNNING
222+ Cluster Name: cluster-1
223+ Replicas: 2
224+ Server Pod:
225+ Container Security Context:
226+ Env:
227+ Liveness Probe:
228+ Node Selector:
229+ Pod Annotations:
230+ Pod Labels:
231+ Pod Security Context:
232+ Readiness Probe:
233+ Resources:
234+ Limits:
235+ Requests:
236+ Service Annotations:
237+ Service Labels:
238+ Volume Mounts:
239+ Volumes:
240+ Server Start State: RUNNING
243241 Domain Home: /u01/oracle/user_projects/domains/domain1
244242 Domain Home In Image: true
245243 Image: 12213-domain-home-in-image:latest
@@ -267,29 +265,39 @@ Spec:
267265 Volume Mounts:
268266 Volumes:
269267 Server Start Policy: IF_NEEDED
268+ Web Logic Credentials Secret:
269+ Name: domain1-weblogic-credentials
270270Status:
271271 Conditions:
272- Last Transition Time: 2018-12-11T21:28:59.537Z
272+ Last Transition Time: 2018-12-17T05:59:55.227Z
273273 Reason: ServersReady
274274 Status: True
275275 Type: Available
276276 Servers:
277277 Health:
278- Activation Time: 2018-12-11T21:28:36.983Z
278+ Activation Time: 2018-12-17T05:59:37.977Z
279279 Overall Health: ok
280280 Subsystems:
281281 Node Name: xxxxxxxx
282282 Server Name: admin-server
283283 State: RUNNING
284284 Cluster Name: cluster-1
285+ Health:
286+ Activation Time: 2018-12-17T06:01:23.764Z
287+ Overall Health: ok
288+ Subsystems:
285289 Node Name: xxxxxxxx
286290 Server Name: managed-server1
287- State: STARTING
291+ State: RUNNING
288292 Cluster Name: cluster-1
293+ Health:
294+ Activation Time: 2018-12-17T06:01:25.393Z
295+ Overall Health: ok
296+ Subsystems:
289297 Node Name: xxxxxxxx
290298 Server Name: managed-server2
291- State: STARTING
292- Start Time: 2018-12-11T21:27:35.869Z
299+ State: RUNNING
300+ Start Time: 2018-12-17T05:58:12.615Z
293301Events: <none>
294302```
295303
@@ -308,9 +316,9 @@ Here is an example of the output of this command:
308316```
309317$ kubectl get pods
310318NAME READY STATUS RESTARTS AGE
311- domain1-admin-server 1/1 Running 0 1m
312- domain1-managed-server1 1/1 Running 0 8m
313- domain1-managed-server2 1/1 Running 0 8m
319+ domain1-admin-server 1/1 Running 0 30m
320+ domain1-managed-server1 1/1 Running 0 29m
321+ domain1-managed-server2 1/1 Running 0 29m
314322```
315323
316324### Verify the services
@@ -325,10 +333,9 @@ Here is an example of the output of this command:
325333```
326334$ kubectl get services
327335NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
328- domain1-admin-server NodePort 10.96.206.134 <none> 7001:30701/TCP 23m
329- domain1-admin-server-extchannel-t3channel NodePort 10.107.164.241 <none> 30012:30012/TCP 22m
330- domain1-cluster-cluster-1 ClusterIP 10.109.133.168 <none> 8001/TCP 22m
331- domain1-managed-server1 ClusterIP None <none> 8001/TCP 22m
336+ domain1-admin-server ClusterIP None <none> 7001/TCP 32m
337+ domain1-cluster-cluster-1 ClusterIP 10.99.151.142 <none> 8001/TCP 31m
338+ domain1-managed-server1 ClusterIP None <none> 8001/TCP 31m
332339domain1-managed-server2 ClusterIP None <none> 8001/TCP 22m
333340```
334341
0 commit comments