Skip to content

Commit 744704e

Browse files
committed
Remove use of storage and move env to right level
1 parent 94694d9 commit 744704e

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ function createYamlFiles {
404404
sed -i -e "s:%LOG_HOME%:${logHome}:g" ${dcrOutput}
405405
sed -i -e "s:%INCLUDE_SERVER_OUT_IN_POD_LOG%:${includeServerOutInPodLog}:g" ${dcrOutput}
406406
sed -i -e "s:%DOMAIN_PVC_NAME%:${persistentVolumeClaimName}:g" ${dcrOutput}
407+
sed -i -e "s:%DOMAIN_ROOT_DIR%:${domainPVMountPath}:g" ${dcrOutput}
407408

408409
# Remove any "...yaml-e" files left over from running sed
409410
rm -f ${domainOutputDir}/*.yaml-e

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

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,20 @@ spec:
4141
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
4242
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
4343
serverStartPolicy: "%SERVER_START_POLICY%"
44-
# an (optional) list of environment variable to be set on the server
45-
env:
46-
- name: JAVA_OPTIONS
47-
value: "%JAVA_OPTIONS%"
48-
- name: USER_MEM_ARGS
49-
value: "-Xms64m -Xmx256m "
44+
serverPod:
45+
# an (optional) list of environment variable to be set on the server
46+
env:
47+
- name: JAVA_OPTIONS
48+
value: "%JAVA_OPTIONS%"
49+
- name: USER_MEM_ARGS
50+
value: "-Xms64m -Xmx256m "
51+
volumes:
52+
- name: weblogic-domain-storage-volume
53+
persistentVolumeClaim:
54+
claimName: %DOMAIN_PVC_NAME%
55+
volumeMounts:
56+
- mountPath: %DOMAIN_ROOT_DIR%
57+
name: weblogic-domain-storage-volume
5058
# adminServer is used to configure the desired behavior for starting the administration server.
5159
adminServer:
5260
# serverStartState legal values are "RUNNING" or "ADMIN"
@@ -65,6 +73,3 @@ spec:
6573
replicas: %INITIAL_MANAGED_SERVER_REPLICAS%
6674
# The number of managed servers to start for unlisted clusters
6775
# replicas: 1
68-
storage:
69-
predefined:
70-
claim: %DOMAIN_PVC_NAME%

0 commit comments

Comments
 (0)