Skip to content

Commit c479d27

Browse files
authored
Merge pull request #733 from oracle/OWLS-70652
Update the domain home in image sample to keep server logs on PV
2 parents 709e718 + 0acec10 commit c479d27

File tree

8 files changed

+279
-341
lines changed

8 files changed

+279
-341
lines changed
Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
# The WebLogic Domain Home
1717
domainHome: %DOMAIN_HOME%
1818
# If the domain home is in the image
19-
domainHomeInImage: false
19+
domainHomeInImage: %DOMAIN_HOME_IN_IMAGE%
2020
# The Operator currently does not support other images
2121
image: "%WEBLOGIC_IMAGE%"
2222
# imagePullPolicy defaults to "Always" if image version is :latest
@@ -30,11 +30,13 @@ spec:
3030
name: %WEBLOGIC_CREDENTIALS_SECRET_NAME%
3131
# Whether to include the server out file into the pod's stdout, default is true
3232
includeServerOutInPodLog: %INCLUDE_SERVER_OUT_IN_POD_LOG%
33+
# Whether to enable log home
34+
%LOG_HOME_ON_PV_PREFIX%logHomeEnabled: %LOG_HOME_ENABLED%
3335
# The in-pod name of the directory to store the domain, node manager, server logs, and server .out
3436
# files in.
3537
# If not specified or empty, domain log file, server logs, server out, and node manager log files
3638
# will be stored in the default logHome location of /shared/logs/<domainUID>/.
37-
logHome: %LOG_HOME%
39+
%LOG_HOME_ON_PV_PREFIX%logHome: %LOG_HOME%
3840
# serverStartPolicy legal values are "NEVER", "IF_NEEDED", or "ADMIN_ONLY"
3941
# This determines which WebLogic Servers the Operator will start up when it discovers this Domain
4042
# - "NEVER" will not start any server in the domain
@@ -48,13 +50,13 @@ spec:
4850
value: "%JAVA_OPTIONS%"
4951
- name: USER_MEM_ARGS
5052
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
53+
%LOG_HOME_ON_PV_PREFIX%volumes:
54+
%LOG_HOME_ON_PV_PREFIX%- name: weblogic-domain-storage-volume
55+
%LOG_HOME_ON_PV_PREFIX% persistentVolumeClaim:
56+
%LOG_HOME_ON_PV_PREFIX% claimName: %DOMAIN_PVC_NAME%
57+
%LOG_HOME_ON_PV_PREFIX%volumeMounts:
58+
%LOG_HOME_ON_PV_PREFIX%- mountPath: %DOMAIN_ROOT_DIR%
59+
%LOG_HOME_ON_PV_PREFIX% name: weblogic-domain-storage-volume
5860
# adminServer is used to configure the desired behavior for starting the administration server.
5961
adminServer:
6062
# serverStartState legal values are "RUNNING" or "ADMIN"

kubernetes/samples/scripts/common/utility.sh

Lines changed: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,210 @@ function getKubernetesClusterIP {
212212
K8S_IP="${array[1]}"
213213
}
214214

215+
#
216+
# Function to generate the properties and yaml files for creating a domain
217+
#
218+
function createFiles {
219+
220+
# Make sure the output directory has a copy of the inputs file.
221+
# The user can either pre-create the output directory, put the inputs
222+
# file there, and create the domain from it, or the user can put the
223+
# inputs file some place else and let this script create the output directory
224+
# (if needed) and copy the inputs file there.
225+
copyInputsFileToOutputDirectory ${valuesInputFile} "${domainOutputDir}/create-domain-inputs.yaml"
226+
227+
if [ "${domainHomeInImage}" == "true" ]; then
228+
if [ -z "${domainHomeImageBase}" ]; then
229+
fail "Please specify domainHomeImageBase in your input YAML"
230+
fi
231+
else
232+
if [ -z "${image}" ]; then
233+
fail "Please specify image in your input YAML"
234+
fi
235+
fi
236+
237+
dcrOutput="${domainOutputDir}/domain.yaml"
238+
239+
domainName=${domainUID}
240+
241+
enabledPrefix="" # uncomment the feature
242+
disabledPrefix="# " # comment out the feature
243+
244+
if [ "${exposeAdminT3Channel}" = true ]; then
245+
exposeAdminT3ChannelPrefix="${enabledPrefix}"
246+
else
247+
exposeAdminT3ChannelPrefix="${disabledPrefix}"
248+
fi
249+
250+
if [ "${exposeAdminNodePort}" = true ]; then
251+
exposeAdminNodePortPrefix="${enabledPrefix}"
252+
else
253+
exposeAdminNodePortPrefix="${disabledPrefix}"
254+
fi
255+
256+
# For some parameters, use the default value if not defined.
257+
if [ -z "${domainPVMountPath}" ]; then
258+
domainPVMountPath="/shared"
259+
fi
260+
261+
if [ -z "${logHome}" ]; then
262+
logHome="${domainPVMountPath}/logs/${domainUID}"
263+
fi
264+
265+
if [ -z "${persistentVolumeClaimName}" ]; then
266+
persistentVolumeClaimName="${domainUID}-weblogic-sample-pvc"
267+
fi
268+
269+
if [ -z "${weblogicCredentialsSecretName}" ]; then
270+
weblogicCredentialsSecretName="${domainUID}-weblogic-credentials"
271+
fi
272+
273+
if [ "${domainHomeInImage}" == "true" ]; then
274+
domainPropertiesOutput="${domainOutputDir}/domain.properties"
275+
domainHome="/u01/oracle/user_projects/domains/${domainName}"
276+
277+
# Generate the properties file that will be used when creating the weblogic domain
278+
echo Generating ${domainPropertiesOutput}
279+
280+
cp ${domainPropertiesInput} ${domainPropertiesOutput}
281+
sed -i -e "s:%DOMAIN_NAME%:${domainName}:g" ${domainPropertiesOutput}
282+
sed -i -e "s:%ADMIN_PORT%:${adminPort}:g" ${domainPropertiesOutput}
283+
sed -i -e "s:%ADMIN_SERVER_NAME%:${adminServerName}:g" ${domainPropertiesOutput}
284+
sed -i -e "s:%MANAGED_SERVER_PORT%:${managedServerPort}:g" ${domainPropertiesOutput}
285+
sed -i -e "s:%MANAGED_SERVER_NAME_BASE%:${managedServerNameBase}:g" ${domainPropertiesOutput}
286+
sed -i -e "s:%CONFIGURED_MANAGED_SERVER_COUNT%:${configuredManagedServerCount}:g" ${domainPropertiesOutput}
287+
sed -i -e "s:%CLUSTER_NAME%:${clusterName}:g" ${domainPropertiesOutput}
288+
sed -i -e "s:%PRODUCTION_MODE_ENABLED%:${productionModeEnabled}:g" ${domainPropertiesOutput}
289+
sed -i -e "s:%CLUSTER_TYPE%:${clusterType}:g" ${domainPropertiesOutput}
290+
sed -i -e "s:%JAVA_OPTIONS%:${javaOptions}:g" ${domainPropertiesOutput}
291+
sed -i -e "s:%T3_CHANNEL_PORT%:${t3ChannelPort}:g" ${domainPropertiesOutput}
292+
sed -i -e "s:%T3_PUBLIC_ADDRESS%:${t3PublicAddress}:g" ${domainPropertiesOutput}
293+
294+
else
295+
296+
createJobOutput="${domainOutputDir}/create-domain-job.yaml"
297+
deleteJobOutput="${domainOutputDir}/delete-domain-job.yaml"
298+
299+
if [ -z "${domainHome}" ]; then
300+
domainHome="${domainPVMountPath}/domains/${domainUID}"
301+
fi
302+
303+
# Use the default value if not defined.
304+
if [ -z "${createDomainScriptsMountPath}" ]; then
305+
createDomainScriptsMountPath="/u01/weblogic"
306+
fi
307+
308+
if [ -z "${createDomainScriptName}" ]; then
309+
createDomainScriptName="create-domain-job.sh"
310+
fi
311+
312+
# Must escape the ':' value in image for sed to properly parse and replace
313+
image=$(echo ${image} | sed -e "s/\:/\\\:/g")
314+
315+
# Generate the yaml to create the kubernetes job that will create the weblogic domain
316+
echo Generating ${createJobOutput}
317+
318+
cp ${createJobInput} ${createJobOutput}
319+
sed -i -e "s:%NAMESPACE%:$namespace:g" ${createJobOutput}
320+
sed -i -e "s:%WEBLOGIC_CREDENTIALS_SECRET_NAME%:${weblogicCredentialsSecretName}:g" ${createJobOutput}
321+
sed -i -e "s:%WEBLOGIC_IMAGE%:${image}:g" ${createJobOutput}
322+
sed -i -e "s:%WEBLOGIC_IMAGE_PULL_POLICY%:${imagePullPolicy}:g" ${createJobOutput}
323+
sed -i -e "s:%WEBLOGIC_IMAGE_PULL_SECRET_NAME%:${imagePullSecretName}:g" ${createJobOutput}
324+
sed -i -e "s:%WEBLOGIC_IMAGE_PULL_SECRET_PREFIX%:${imagePullSecretPrefix}:g" ${createJobOutput}
325+
sed -i -e "s:%DOMAIN_UID%:${domainUID}:g" ${createJobOutput}
326+
sed -i -e "s:%DOMAIN_NAME%:${domainName}:g" ${createJobOutput}
327+
sed -i -e "s:%DOMAIN_HOME%:${domainHome}:g" ${createJobOutput}
328+
sed -i -e "s:%PRODUCTION_MODE_ENABLED%:${productionModeEnabled}:g" ${createJobOutput}
329+
sed -i -e "s:%ADMIN_SERVER_NAME%:${adminServerName}:g" ${createJobOutput}
330+
sed -i -e "s:%ADMIN_SERVER_NAME_SVC%:${adminServerNameSVC}:g" ${createJobOutput}
331+
sed -i -e "s:%ADMIN_PORT%:${adminPort}:g" ${createJobOutput}
332+
sed -i -e "s:%CONFIGURED_MANAGED_SERVER_COUNT%:${configuredManagedServerCount}:g" ${createJobOutput}
333+
sed -i -e "s:%MANAGED_SERVER_NAME_BASE%:${managedServerNameBase}:g" ${createJobOutput}
334+
sed -i -e "s:%MANAGED_SERVER_NAME_BASE_SVC%:${managedServerNameBaseSVC}:g" ${createJobOutput}
335+
sed -i -e "s:%MANAGED_SERVER_PORT%:${managedServerPort}:g" ${createJobOutput}
336+
sed -i -e "s:%T3_CHANNEL_PORT%:${t3ChannelPort}:g" ${createJobOutput}
337+
sed -i -e "s:%T3_PUBLIC_ADDRESS%:${t3PublicAddress}:g" ${createJobOutput}
338+
sed -i -e "s:%CLUSTER_NAME%:${clusterName}:g" ${createJobOutput}
339+
sed -i -e "s:%CLUSTER_TYPE%:${clusterType}:g" ${createJobOutput}
340+
sed -i -e "s:%DOMAIN_PVC_NAME%:${persistentVolumeClaimName}:g" ${createJobOutput}
341+
sed -i -e "s:%DOMAIN_ROOT_DIR%:${domainPVMountPath}:g" ${createJobOutput}
342+
sed -i -e "s:%CREATE_DOMAIN_SCRIPT_DIR%:${createDomainScriptsMountPath}:g" ${createJobOutput}
343+
sed -i -e "s:%CREATE_DOMAIN_SCRIPT%:${createDomainScriptName}:g" ${createJobOutput}
344+
345+
# Generate the yaml to create the kubernetes job that will delete the weblogic domain_home folder
346+
echo Generating ${deleteJobOutput}
347+
348+
cp ${deleteJobInput} ${deleteJobOutput}
349+
sed -i -e "s:%NAMESPACE%:$namespace:g" ${deleteJobOutput}
350+
sed -i -e "s:%WEBLOGIC_IMAGE%:${image}:g" ${deleteJobOutput}
351+
sed -i -e "s:%WEBLOGIC_IMAGE_PULL_POLICY%:${imagePullPolicy}:g" ${deleteJobOutput}
352+
sed -i -e "s:%WEBLOGIC_CREDENTIALS_SECRET_NAME%:${weblogicCredentialsSecretName}:g" ${deleteJobOutput}
353+
sed -i -e "s:%WEBLOGIC_IMAGE_PULL_SECRET_NAME%:${imagePullSecretName}:g" ${deleteJobOutput}
354+
sed -i -e "s:%WEBLOGIC_IMAGE_PULL_SECRET_PREFIX%:${imagePullSecretPrefix}:g" ${deleteJobOutput}
355+
sed -i -e "s:%DOMAIN_UID%:${domainUID}:g" ${deleteJobOutput}
356+
sed -i -e "s:%DOMAIN_NAME%:${domainName}:g" ${deleteJobOutput}
357+
sed -i -e "s:%DOMAIN_HOME%:${domainHome}:g" ${deleteJobOutput}
358+
sed -i -e "s:%DOMAIN_PVC_NAME%:${persistentVolumeClaimName}:g" ${deleteJobOutput}
359+
sed -i -e "s:%DOMAIN_ROOT_DIR%:${domainPVMountPath}:g" ${deleteJobOutput}
360+
fi
361+
362+
if [ "${domainHomeInImage}" == "true" ]; then
363+
if [ "${logHomeOnPV}" == "true" ]; then
364+
logHomeOnPVPrefix="${enabledPrefix}"
365+
else
366+
logHomeOnPVPrefix="${disabledPrefix}"
367+
fi
368+
else
369+
logHomeOnPVPrefix="${enabledPrefix}"
370+
logHomeOnPV=true
371+
fi
372+
373+
# Generate the yaml file for creating the domain resource
374+
echo Generating ${dcrOutput}
375+
376+
cp ${dcrInput} ${dcrOutput}
377+
sed -i -e "s:%DOMAIN_UID%:${domainUID}:g" ${dcrOutput}
378+
sed -i -e "s:%NAMESPACE%:$namespace:g" ${dcrOutput}
379+
sed -i -e "s:%DOMAIN_HOME%:${domainHome}:g" ${dcrOutput}
380+
sed -i -e "s:%DOMAIN_HOME_IN_IMAGE%:${domainHomeInImage}:g" ${dcrOutput}
381+
sed -i -e "s:%WEBLOGIC_IMAGE_PULL_POLICY%:${imagePullPolicy}:g" ${dcrOutput}
382+
sed -i -e "s:%WEBLOGIC_IMAGE_PULL_SECRET_PREFIX%:${imagePullSecretPrefix}:g" ${dcrOutput}
383+
sed -i -e "s:%WEBLOGIC_IMAGE_PULL_SECRET_NAME%:${imagePullSecretName}:g" ${dcrOutput}
384+
sed -i -e "s:%WEBLOGIC_CREDENTIALS_SECRET_NAME%:${weblogicCredentialsSecretName}:g" ${dcrOutput}
385+
sed -i -e "s:%INCLUDE_SERVER_OUT_IN_POD_LOG%:${includeServerOutInPodLog}:g" ${dcrOutput}
386+
sed -i -e "s:%LOG_HOME_ON_PV_PREFIX%:${logHomeOnPVPrefix}:g" ${dcrOutput}
387+
sed -i -e "s:%LOG_HOME_ENABLED%:${logHomeOnPV}:g" ${dcrOutput}
388+
sed -i -e "s:%LOG_HOME%:${logHome}:g" ${dcrOutput}
389+
sed -i -e "s:%SERVER_START_POLICY%:${serverStartPolicy}:g" ${dcrOutput}
390+
sed -i -e "s:%JAVA_OPTIONS%:${javaOptions}:g" ${dcrOutput}
391+
sed -i -e "s:%DOMAIN_PVC_NAME%:${persistentVolumeClaimName}:g" ${dcrOutput}
392+
sed -i -e "s:%DOMAIN_ROOT_DIR%:${domainPVMountPath}:g" ${dcrOutput}
393+
sed -i -e "s:%EXPOSE_ADMIN_PORT_PREFIX%:${exposeAdminNodePortPrefix}:g" ${dcrOutput}
394+
sed -i -e "s:%ADMIN_NODE_PORT%:${adminNodePort}:g" ${dcrOutput}
395+
sed -i -e "s:%EXPOSE_T3_CHANNEL_PREFIX%:${exposeAdminT3ChannelPrefix}:g" ${dcrOutput}
396+
sed -i -e "s:%CLUSTER_NAME%:${clusterName}:g" ${dcrOutput}
397+
sed -i -e "s:%INITIAL_MANAGED_SERVER_REPLICAS%:${initialManagedServerReplicas}:g" ${dcrOutput}
398+
399+
if [ "${domainHomeInImage}" == "true" ]; then
400+
if [ -z $domainHomeImageBuildPath ]; then
401+
domainHomeImageBuildPath="./docker-images/OracleWebLogic/samples/12213-domain-home-in-image-wdt"
402+
fi
403+
imageName="`basename ${domainHomeImageBuildPath} | sed 's/^[0-9]*-//'`"
404+
405+
# now we know which image to use, update the domain yaml file
406+
if [ -z $image ]; then
407+
sed -i -e "s|%WEBLOGIC_IMAGE%|${imageName}|g" ${dcrOutput}
408+
else
409+
sed -i -e "s:%WEBLOGIC_IMAGE%:${image}:g" ${dcrOutput}
410+
fi
411+
else
412+
sed -i -e "s:%WEBLOGIC_IMAGE%:${image}:g" ${dcrOutput}
413+
fi
414+
415+
# Remove any "...yaml-e" files left over from running sed
416+
rm -f ${domainOutputDir}/*.yaml-e
417+
}
418+
215419
#
216420
# Function to create the domain recource
217421
#
@@ -231,8 +435,19 @@ function createDomainResource {
231435

232436
#
233437
# Function to create a domain
438+
# $1 - boolean value indicating the location of the domain home
439+
# true means domain home in image
440+
# false means domain home on PV
234441
#
235442
function createDomain {
443+
if [ "$#" != 1 ]; then
444+
fail "The function must be called with domainHomeInImage parameter."
445+
fi
446+
447+
domainHomeInImage="${1}"
448+
if [ "true" != "${domainHomeInImage}" ] && [ "false" != "${domainHomeInImage}" ]; then
449+
fail "The value of domainHomeInImage must be true or false: ${domainHomeInImage}"
450+
fi
236451

237452
# Setup the environment for running this script and perform initial validation checks
238453
initialize

kubernetes/samples/scripts/common/validate.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,3 +395,15 @@ function validateCommonInputs {
395395
failIfValidationErrors
396396
}
397397

398+
#
399+
# Function to validate the domain's persistent volume claim has been created
400+
#
401+
function validateDomainPVC {
402+
# Check if the persistent volume claim is already available
403+
checkPvcExists ${persistentVolumeClaimName} ${namespace}
404+
if [ "${PVC_EXISTS}" = "false" ]; then
405+
validationError "The domain persistent volume claim ${persistentVolumeClaimName} does not exist in namespace ${namespace}"
406+
fi
407+
failIfValidationErrors
408+
}
409+

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
# WebLogic sample domain home in Docker image
22

3-
The sample scripts demonstrate the creation of a WebLogic domain home in a Docker image. The scripts also generate the domain YAML file, which can then be used to start the Kubernetes artifacts of the corresponding domain. Optionally, the scripts start up the domain, and WebLogic Server pods and services.
3+
The sample scripts demonstrate the creation of a WebLogic domain home in a Docker image. If logHomeOnPV is enabled, then the log home resides on an existing Kubernetes persistent volume (PV) and persistent volume claim (PVC). The scripts also generate the domain YAML file, which can then be used to start the Kubernetes artifacts of the corresponding domain. Optionally, the scripts start up the domain, and WebLogic Server pods and services.
44

55
## Prerequisites
66

7+
Before you begin, read this guide, [Domain Resource](../../../../../site/domain-resource.md)
8+
79
The following prerequisites must be handled prior to running the create domain script:
810
* The WDT sample requires that JAVA_HOME is set to a java JDK version 1.8 or greater
911
* Make sure the WebLogic operator is running.
1012
* The operator requires WebLogic Server 12.2.1.3.0 with patch 28076014 applied. Refer to [Weblogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how to create one. If a different `domainHomeImageBase` (see Configuration table below) is specified, the specified image needs to be built locally or pulled from a repository.
1113
* Create a Kubernetes namespace for the domain unless the intention is to use the default namespace.
14+
* If logHomeOnPV is enabled, create the Kubernetes persistent volume where the log home will be hosted, and the Kubernetes persistent volume claim for the domain in the same Kubernates namespace. For samples to create a PV and PVC, see [Create sample PV and PVC](../../create-weblogic-domain-pv-pvc/README.md).
1215
* Create the Kubernetes secrets `username` and `password` of the admin account in the same Kubernetes namespace as the domain.
1316

1417
## Use the script to create a domain
@@ -50,6 +53,7 @@ usage: create-domain.sh -o dir -i file -u username -p password [-k] [-e] [-h]
5053
-u Username used in building the Docker image for WebLogic domain in image.
5154
-p Password used in building the Docker image for WebLogic domain in image.
5255
-e Also create the resources in the generated YAML files, optional.
56+
-v Validate the existence of persistentVolumeClaim, optional.
5357
-k Keep what has been previously cloned from https://github.com/oracle/docker-images.git, optional.
5458
If not specified, this script will always remove existing project and clone again.
5559
-h Help
@@ -91,6 +95,7 @@ The following parameters can be provided in the inputs file.
9195
| `configuredManagedServerCount` | Number of Managed Server instances to generate for the domain. | `5` |
9296
| `domainHomeImageBase` | Base WebLogic binary image used to build the WebLogic domain image. The operator requires WebLogic Server 12.2.1.3.0 with patch 28076014 applied. Refer to [Weblogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how to create one. If a different `domainHomeImageBase` (see Configuration table below) is specified, the specified image needs to be built locally or pulled from a repository before the `create-domain.sh` script is executed. | |
9397
| `domainHomeImageBuildPath` | Location of the WebLogic "domain home in image" Docker image in `https://github.com/oracle/docker-images.git` project. If not specified, use "./docker-images/OracleWebLogic/samples/12213-domain-home-in-image-wdt". Another possible value is "./docker-images/OracleWebLogic/samples/12213-domain-home-in-image" which uses WLST scripts, instead of WDT, to generate the domain configuration. | `./docker-images/OracleWebLogic/samples/12213-domain-home-in-image-wdt` |
98+
| `domainPVMountPath` | Mount path of the domain persistent volume. | `/shared` |
9499
| `domainUID` | Unique ID that will be used to identify this particular domain. Used as the name of the generated WebLogic domain as well as the name of the Kubernetes domain resource. This ID must be unique across all domains in a Kubernetes cluster. This ID cannot contain any character that is not valid in a Kubernetes service name. | `domain1` |
95100
| `exposeAdminNodePort` | Boolean indicating if the Administration Server is exposed outside of the Kubernetes cluster. | `false` |
96101
| `exposeAdminT3Channel` | Boolean indicating if the T3 administrative channel is exposed outside the Kubernetes cluster. | `false` |
@@ -100,9 +105,12 @@ The following parameters can be provided in the inputs file.
100105
| `includeServerOutInPodLog` | Boolean indicating whether to include server .out to the pod's stdout. | `true` |
101106
| `initialManagedServerReplicas` | Number of Managed Servers to initially start for the domain. | `2` |
102107
| `javaOptions` | Java options for starting the Administration and Managed Servers. A Java option can have references to one or more of the following pre-defined variables to obtain WebLogic domain information: `$(DOMAIN_NAME)`, `$(DOMAIN_HOME)`, `$(ADMIN_NAME)`, `$(ADMIN_PORT)`, and `$(SERVER_NAME)`. | `-Dweblogic.StdoutDebugEnabled=false` |
108+
| `logHomeOnPV` | Specifies whether the log home is stored on the persistent volume. | `false` |
109+
| `logHome` | The in-pod name of the directory to store the domain, node manager, server logs, and server .out files in. If not specified, the value is derived from the `domainUID` as `/shared/logs/<domainUID>`. | `/shared/logs/domain1` |
103110
| `managedServerNameBase` | Base string used to generate Managed Server names. | `managed-server` |
104111
| `managedServerPort` | Port number for each Managed Server. | `8001` |
105112
| `namespace` | Kubernetes namespace in which to create the domain. | `default` |
113+
| `persistentVolumeClaimName` | Name of the persistent volume claim. If not specified, the value is derived from the `domainUID` as `<domainUID>-weblogic-sample-pvc` | `domain1-weblogic-sample-pvc` |
106114
| `productionModeEnabled` | Boolean indicating if production mode is enabled for the domain. | `true` |
107115
| `serverStartPolicy` | Determines which WebLogic Servers will be started up. Legal values are `NEVER`, `IF_NEEDED`, `ADMIN_ONLY`. | `IF_NEEDED` |
108116
| `t3ChannelPort` | Port for the T3 channel of the NetworkAccessPoint. | `30012` |

0 commit comments

Comments
 (0)