Skip to content

Commit 84f5262

Browse files
committed
Revert some changes since env at domain level does not seem to work
Signed-off-by: doxiao <[email protected]>
1 parent 999f72a commit 84f5262

File tree

4 files changed

+33
-19
lines changed

4 files changed

+33
-19
lines changed

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

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,6 @@ spec:
147147
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
148148
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
149149
serverStartPolicy: "IF_NEEDED"
150-
# an (optional) list of environment variable to be set on the servers
151-
env:
152-
- name: JAVA_OPTIONS
153-
value: "-Dweblogic.StdoutDebugEnabled=false"
154-
- name: USER_MEM_ARGS
155-
value: "-Xms64m -Xmx256m "
156150
# adminServer is used to configure the desired behavior for starting the administration server.
157151
adminServer:
158152
# serverStartState legal values are "RUNNING" or "ADMIN"
@@ -164,12 +158,23 @@ spec:
164158
# Uncomment to export the T3Channel as a service
165159
# exportedNetworkAccessPoints:
166160
# T3Channel: {}
161+
# an (optional) list of environment variable to be set on the server
162+
env:
163+
- name: JAVA_OPTIONS
164+
value: "-Dweblogic.StdoutDebugEnabled=false"
165+
- name: USER_MEM_ARGS
166+
value: "-Xms64m -Xmx256m "
167167
# clusters is used to configure the desired behavior for starting member servers of a cluster.
168168
# If you use this entry, then the rules will be applied to ALL servers that are members of the named clusters.
169169
clusters:
170170
cluster-1:
171171
desiredState: "RUNNING"
172172
replicas: 2
173+
env:
174+
- name: JAVA_OPTIONS
175+
value: "-Dweblogic.StdoutDebugEnabled=false"
176+
- name: USER_MEM_ARGS
177+
value: "-Xms64m -Xmx256m "
173178
# The number of managed servers to start for unlisted clusters
174179
# replicas: 1
175180

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

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ spec:
4444
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
4545
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
4646
serverStartPolicy: "%SERVER_START_POLICY%"
47-
# an (optional) list of environment variable to be set on the servers
48-
env:
49-
- name: JAVA_OPTIONS
50-
value: "%JAVA_OPTIONS%"
51-
- name: USER_MEM_ARGS
52-
value: "-Xms64m -Xmx256m "
5347
# adminServer is used to configure the desired behavior for starting the administration server.
5448
adminServer:
5549
# serverStartState legal values are "RUNNING" or "ADMIN"
@@ -61,11 +55,22 @@ spec:
6155
# Uncomment to export the T3Channel as a service
6256
%EXPOSE_T3_CHANNEL_PREFIX%exportedNetworkAccessPoints:
6357
%EXPOSE_T3_CHANNEL_PREFIX% T3Channel: {}
58+
# an (optional) list of environment variable to be set on the server
59+
env:
60+
- name: JAVA_OPTIONS
61+
value: "%JAVA_OPTIONS%"
62+
- name: USER_MEM_ARGS
63+
value: "-Xms64m -Xmx256m "
6464
# clusters is used to configure the desired behavior for starting member servers of a cluster.
6565
# If you use this entry, then the rules will be applied to ALL servers that are members of the named clusters.
6666
clusters:
6767
%CLUSTER_NAME%:
6868
serverStartState: "RUNNING"
6969
replicas: %INITIAL_MANAGED_SERVER_REPLICAS%
70+
env:
71+
- name: JAVA_OPTIONS
72+
value: "%JAVA_OPTIONS%"
73+
- name: USER_MEM_ARGS
74+
value: "-Xms64m -Xmx256m "
7075
# The number of managed servers to start from clusters not listed in clusters
7176
# replicas: 1

kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,6 @@ spec:
163163
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
164164
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
165165
serverStartPolicy: "IF_NEEDED"
166-
# an (optional) list of environment variable to be set on the servers
167-
env:
168-
- name: JAVA_OPTIONS
169-
value: "-Dweblogic.StdoutDebugEnabled=false"
170-
- name: USER_MEM_ARGS
171-
value: "-Xms64m -Xmx256m "
172166
# adminServer is used to configure the desired behavior for starting the administration server.
173167
adminServer:
174168
# serverStartState legal values are "RUNNING" or "ADMIN"
@@ -181,12 +175,22 @@ spec:
181175
exportedNetworkAccessPoints:
182176
T3Channel: {}
183177
# an (optional) list of environment variable to be set on the server
178+
env:
179+
- name: JAVA_OPTIONS
180+
value: "-Dweblogic.StdoutDebugEnabled=false"
181+
- name: USER_MEM_ARGS
182+
value: "-Xms64m -Xmx256m "
184183
# clusters is used to configure the desired behavior for starting member servers of a cluster.
185184
# If you use this entry, then the rules will be applied to ALL servers that are members of the named clusters.
186185
clusters:
187186
cluster-1:
188187
serverStartState: "RUNNING"
189188
replicas: 2
189+
env:
190+
- name: JAVA_OPTIONS
191+
value: "-Dweblogic.StdoutDebugEnabled=false"
192+
- name: USER_MEM_ARGS
193+
value: "-Xms64m -Xmx256m "
190194
# The number of managed servers to start for unlisted clusters
191195
# replicas: 1
192196
storage:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ 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 servers
56+
# an (optional) list of environment variable to be set on the server
5757
env:
5858
- name: JAVA_OPTIONS
5959
value: "%JAVA_OPTIONS%"

0 commit comments

Comments
 (0)