Skip to content

Commit a4ea565

Browse files
committed
Revert "Revert some changes since env at domain level does not seem to work"
This reverts commit 84f5262.
1 parent 84f5262 commit a4ea565

File tree

4 files changed

+19
-33
lines changed

4 files changed

+19
-33
lines changed

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

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ 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 "
150156
# adminServer is used to configure the desired behavior for starting the administration server.
151157
adminServer:
152158
# serverStartState legal values are "RUNNING" or "ADMIN"
@@ -158,23 +164,12 @@ spec:
158164
# Uncomment to export the T3Channel as a service
159165
# exportedNetworkAccessPoints:
160166
# 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 "
178173
# The number of managed servers to start for unlisted clusters
179174
# replicas: 1
180175

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

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ 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 "
4753
# adminServer is used to configure the desired behavior for starting the administration server.
4854
adminServer:
4955
# serverStartState legal values are "RUNNING" or "ADMIN"
@@ -55,22 +61,11 @@ spec:
5561
# Uncomment to export the T3Channel as a service
5662
%EXPOSE_T3_CHANNEL_PREFIX%exportedNetworkAccessPoints:
5763
%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 "
7570
# The number of managed servers to start from clusters not listed in clusters
7671
# replicas: 1

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

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,12 @@ 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 "
166172
# adminServer is used to configure the desired behavior for starting the administration server.
167173
adminServer:
168174
# serverStartState legal values are "RUNNING" or "ADMIN"
@@ -175,22 +181,12 @@ spec:
175181
exportedNetworkAccessPoints:
176182
T3Channel: {}
177183
# 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 "
183184
# clusters is used to configure the desired behavior for starting member servers of a cluster.
184185
# If you use this entry, then the rules will be applied to ALL servers that are members of the named clusters.
185186
clusters:
186187
cluster-1:
187188
serverStartState: "RUNNING"
188189
replicas: 2
189-
env:
190-
- name: JAVA_OPTIONS
191-
value: "-Dweblogic.StdoutDebugEnabled=false"
192-
- name: USER_MEM_ARGS
193-
value: "-Xms64m -Xmx256m "
194190
# The number of managed servers to start for unlisted clusters
195191
# replicas: 1
196192
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 server
56+
# an (optional) list of environment variable to be set on the servers
5757
env:
5858
- name: JAVA_OPTIONS
5959
value: "%JAVA_OPTIONS%"

0 commit comments

Comments
 (0)