Skip to content

Commit 1bbfd5f

Browse files
committed
Move env from server/cluster lvel to domain level
Signed-off-by: doxiao <[email protected]>
1 parent 97d91c5 commit 1bbfd5f

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/domain-template.yaml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,34 +53,27 @@ spec:
5353
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
5454
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
5555
serverStartPolicy: "%SERVER_START_POLICY%"
56+
# an (optional) list of environment variable to be set on the server
57+
env:
58+
- name: JAVA_OPTIONS
59+
value: "%JAVA_OPTIONS%"
60+
- name: USER_MEM_ARGS
61+
value: "-Xms64m -Xmx256m "
5662
# adminServer is used to configure the desired behavior for starting the administration server.
5763
adminServer:
5864
# serverStartState legal values are "RUNNING" or "ADMIN"
5965
# "RUNNING" means the listed server will be started up to "RUNNING" mode
6066
# "ADMIN" means the listed server will be start up to "ADMIN" mode
61-
serverStartState: "RUNNING"
6267
# The Admin Server's NodePort
6368
%EXPOSE_ADMIN_PORT_PREFIX%nodePort: %ADMIN_NODE_PORT%
6469
# Uncomment to export the T3Channel as a service
6570
%EXPOSE_T3_CHANNEL_PREFIX%exportedNetworkAccessPoints:
6671
%EXPOSE_T3_CHANNEL_PREFIX% T3Channel: {}
67-
# an (optional) list of environment variable to be set on the server
68-
env:
69-
- name: JAVA_OPTIONS
70-
value: "%JAVA_OPTIONS%"
71-
- name: USER_MEM_ARGS
72-
value: "-Xms64m -Xmx256m "
7372
# clusters is used to configure the desired behavior for starting member servers of a cluster.
7473
# If you use this entry, then the rules will be applied to ALL servers that are members of the named clusters.
7574
clusters:
7675
%CLUSTER_NAME%:
77-
serverStartState: "RUNNING"
7876
replicas: %INITIAL_MANAGED_SERVER_REPLICAS%
79-
env:
80-
- name: JAVA_OPTIONS
81-
value: "%JAVA_OPTIONS%"
82-
- name: USER_MEM_ARGS
83-
value: "-Xms64m -Xmx256m "
8477
# The number of managed servers to start for unlisted clusters
8578
# replicas: 1
8679
storage:

0 commit comments

Comments
 (0)