File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed
kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -404,6 +404,7 @@ function createYamlFiles {
404
404
sed -i -e " s:%LOG_HOME%:${logHome} :g" ${dcrOutput}
405
405
sed -i -e " s:%INCLUDE_SERVER_OUT_IN_POD_LOG%:${includeServerOutInPodLog} :g" ${dcrOutput}
406
406
sed -i -e " s:%DOMAIN_PVC_NAME%:${persistentVolumeClaimName} :g" ${dcrOutput}
407
+ sed -i -e " s:%DOMAIN_ROOT_DIR%:${domainPVMountPath} :g" ${dcrOutput}
407
408
408
409
# Remove any "...yaml-e" files left over from running sed
409
410
rm -f ${domainOutputDir} /* .yaml-e
Original file line number Diff line number Diff line change @@ -41,12 +41,20 @@ spec:
41
41
# - "ADMIN_ONLY" will start up only the administration server (no managed servers will be started)
42
42
# - "IF_NEEDED" will start all non-clustered servers, including the administration server and clustered servers up to the replica count
43
43
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
50
58
# adminServer is used to configure the desired behavior for starting the administration server.
51
59
adminServer :
52
60
# serverStartState legal values are "RUNNING" or "ADMIN"
65
73
replicas : %INITIAL_MANAGED_SERVER_REPLICAS%
66
74
# The number of managed servers to start for unlisted clusters
67
75
# replicas: 1
68
- storage :
69
- predefined :
70
- claim : %DOMAIN_PVC_NAME%
You can’t perform that action at this time.
0 commit comments