Skip to content

Commit 1e06a8a

Browse files
ankediarjeberhard
authored andcommitted
Add a note in the Domain on PV sample to clarify the hostPath usage for single node and fix the error message
1 parent f1f9a85 commit 1e06a8a

File tree

2 files changed

+10
-2
lines changed
  • documentation/site/content/samples/domains/domain-home-on-pv
  • operator/src/main/resources/scripts

2 files changed

+10
-2
lines changed

documentation/site/content/samples/domains/domain-home-on-pv/sample.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ Click [here](https://raw.githubusercontent.com/oracle/weblogic-kubernetes-operat
131131

132132
Click [here](https://raw.githubusercontent.com/oracle/weblogic-kubernetes-operator/{{< latestMinorVersion >}}/kubernetes/samples/scripts/create-weblogic-domain/domain-on-pv/domain-resources/JRF/domain-on-pv-JRF-v1.yaml) to view the JRF Domain YAML file.
133133

134+
Modify the PV and PVC specifications defined in the `spec.configuration.initializeDomainOnPV` section of the Domain resource YAML file based on your environment. These specifications often require your Kubernetes cluster administrator to provide the information. See [Persistent volume and Persistent Volume Claim]({{< relref "/managing-domains/domain-on-pv/usage#persistent-volume-and-persistent-volume-claim" >}}) in the user documentation for more details.
135+
136+
{{% notice note %}}
137+
By default, this sample creates a Persistent Volume (PV) of type `hostPath`. This works only for a single node Kubernetes cluster for testing or proof of concept activities. In a multinode Kubernetes cluster, consider using a Kubernetes `StorageClass`, or PV of `nfs` type. If you use Oracle Container Engine for Kubernetes (OKE) and plan to use Oracle Cloud Infrastructure File Storage (FSS) for PV, then Oracle recommends creating a `StorageClass` and specifying the name of the `StorageClass` in your PersistentVolumeClaim (PVC) configuration in the `initializeDomainOnPV` section. See [Provisioning PVCs on the File Storage Service (FSS)](https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengcreatingpersistentvolumeclaim_Provisioning_PVCs_on_FSS.htm#Provisioning_Persistent_Volume_Claims_on_the_FileStorageService) in the OCI documentation for more details.
138+
{{% /notice %}}
139+
134140
**NOTE**: Before you deploy the domain custom resource, ensure all nodes in your Kubernetes cluster [can access `domain-creation-image` and other images]({{< relref "/samples/domains/domain-home-on-pv#ensuring-your-kubernetes-cluster-can-access-images" >}}).
135141

136142
Run the following command to apply the two sample resources.

operator/src/main/resources/scripts/startServer.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ traceTiming "POD '${SERVICE_NAME}' MAIN START"
2020

2121
trace "Starting WebLogic Server '${SERVER_NAME}'."
2222

23-
source ${SCRIPTPATH}/modelInImage.sh
23+
if [ ${DOMAIN_SOURCE_TYPE} == "FromModel" ]; then
24+
source ${SCRIPTPATH}/modelInImage.sh
2425

25-
if [ $? -ne 0 ]; then
26+
if [ $? -ne 0 ]; then
2627
trace SEVERE "Error sourcing modelInImage.sh" && exit 1
28+
fi
2729
fi
2830

2931
exportInstallHomes

0 commit comments

Comments
 (0)