Skip to content

Commit 94694d9

Browse files
authored
Merge pull request #602 from oracle/domain-sample-cleanup
Correct volumeMount config in domain-home-in-image sample plus a cleanup
2 parents 086dd58 + 5c9a671 commit 94694d9

File tree

2 files changed

+13
-25
lines changed

2 files changed

+13
-25
lines changed

kubernetes/samples/scripts/create-weblogic-domain-pv-pvc/create-pv-pvc-inputs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ weblogicDomainStorageType: HOST_PATH
2626

2727
# Physical path of the persistent storage.
2828
# The following line must be uncomment and customized:
29-
weblogicDomainStoragePath: /scratch/k8s_dir
29+
#weblogicDomainStoragePath: /scratch/k8s_dir
3030

3131
# Reclaim policy of the persistent storage
3232
# The valid values are: 'Retain', 'Delete', and 'Recycle'

kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/domain-template.yaml

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ spec:
3232
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
3333
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
3434
serverStartPolicy: "%SERVER_START_POLICY%"
35+
env:
36+
- name: JAVA_OPTIONS
37+
value: "%JAVA_OPTIONS%"
38+
- name: USER_MEM_ARGS
39+
value: "-Xms64m -Xmx256m "
40+
volumes:
41+
- name: runtime-properties
42+
hostPath:
43+
path: "%RUNTIME_PROPERTIES%"
44+
volumeMounts:
45+
- mountPath: "/u01/oracle/properties"
46+
name: runtime-properties
3547
# adminServer is used to configure the desired behavior for starting the administration server.
3648
adminServer:
3749
# serverStartState legal values are "RUNNING" or "ADMIN"
@@ -44,35 +56,11 @@ spec:
4456
%EXPOSE_T3_CHANNEL_PREFIX%exportedNetworkAccessPoints:
4557
%EXPOSE_T3_CHANNEL_PREFIX% T3Channel: {}
4658
# an (optional) list of environment variable to be set on the server
47-
env:
48-
- name: JAVA_OPTIONS
49-
value: "%JAVA_OPTIONS%"
50-
- name: USER_MEM_ARGS
51-
value: "-Xms64m -Xmx256m "
52-
volumes:
53-
- name: runtime-properties
54-
hostPath:
55-
path: "%RUNTIME_PROPERTIES%"
56-
volumeMounts:
57-
- name: runtime-properties
58-
mountPath: "/u01/oracle/properties"
5959
# clusters is used to configure the desired behavior for starting member servers of a cluster.
6060
# If you use this entry, then the rules will be applied to ALL servers that are members of the named clusters.
6161
clusters:
6262
%CLUSTER_NAME%:
6363
serverStartState: "RUNNING"
6464
replicas: %INITIAL_MANAGED_SERVER_REPLICAS%
65-
env:
66-
- name: JAVA_OPTIONS
67-
value: "%JAVA_OPTIONS%"
68-
- name: USER_MEM_ARGS
69-
value: "-Xms64m -Xmx256m "
70-
volumes:
71-
- name: runtime-properties
72-
hostPath:
73-
path: "%RUNTIME_PROPERTIES%"
74-
volumeMounts:
75-
- name: runtime-properties
76-
mountPath: "/u01/oracle/properties"
7765
# The number of managed servers to start from clusters not listed in clusters
7866
# replicas: 1

0 commit comments

Comments
 (0)