You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'cleanup-persistent-storage-and-README' of orahub.oci.oraclecorp.com:weblogic-cloud/weblogic-kubernetes-operator into cleanup-persistent-storage-and-README
Copy file name to clipboardExpand all lines: documentation/site/content/managing-domains/persistent-storage/oci-fss-pv.md
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -11,32 +11,27 @@ an update to properly initialize the file ownership on the persistent volume
11
11
when the domain is initially created."
12
12
---
13
13
14
-
#### References
15
-
16
-
-[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.
17
-
-[Setting up storage for kubernetes clusters](https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengcreatingpersistentvolumeclaim.htm) in the OCI documentation.
18
-
19
14
Oracle recommends using Oracle Cloud Infrastructure File Storage (FSS) for persistent volumes to store
20
15
the WebLogic domain home or log files when running the Kubernetes cluster on Oracle Container Engine
21
16
for Kubernetes (OKE). When using the FSS with OKE for domain home or log files, the file system
22
-
handling will require an update to properly initialize the file ownership on the persistent volume
17
+
handling will require an update to properly initialize the file ownership on the persistent volume
23
18
when the domain is initially created.
24
19
25
20
{{% notice note %}}
26
21
File permission handling on persistent volumes can differ between
27
22
cloud providers and even with the underlying storage handling on
28
-
Linux-based systems.
23
+
Linux-based systems.
29
24
The operator requires permission to create directories on the persistent volume under the shared mount path.
30
25
The following instructions provide an option to update the file ownership and permissions.
31
26
{{% /notice %}}
32
27
33
28
34
-
#### Updating the permissions of shared directory on Persistent storage
35
-
The operator provides a utility script `pv-pvc-helper.sh` as part of the lifecycle scripts to change the ownership and permissions of the shared directory on the Persistent storage.
29
+
#### Updating the permissions of shared directory on persistent storage
30
+
The operator provides a utility script,`pv-pvc-helper.sh`, as part of the lifecycle scripts to change the ownership and permissions of the shared directory on the persistent storage.
36
31
37
-
This script launches a Pod and mounts the specified PVC in the Pod containers at the specified mount path. You can then exec in the Pod and manually change the permissions or ownership.
32
+
This script launches a Pod and mounts the specified PVC in the Pod containers at the specified mount path. You can then `exec` in the Pod and manually change the permissions or ownership.
38
33
39
-
See the `pv-pvc-helper.sh` in `Examine, change permissions or delete PV contents` section in the [README](https://github.com/oracle/weblogic-kubernetes-operator/tree/{{< latestMinorVersion >}}/kubernetes/samples/scripts/domain-lifecycle/README.md) file for the script details.
34
+
See the `pv-pvc-helper.sh` in "Examine, change permissions or delete PV contents" section in the [README](https://github.com/oracle/weblogic-kubernetes-operator/tree/{{< latestMinorVersion >}}/kubernetes/samples/scripts/domain-lifecycle/README.md) file for the script details.
40
35
41
36
For example, run the following command to create the Pod.
After you get a shell to the running Pod container, change the directory to `/shared`, and you can change the ownership or permissions using appropriate `chown` or `chmod` commands. For example,
70
+
After you get a shell to the running Pod container, change the directory to `/shared`, and you can change the ownership or permissions using the appropriate `chown` or `chmod` commands. For example,
-[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.
79
+
-[Setting up storage for Kubernetes clusters](https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengcreatingpersistentvolumeclaim.htm) in the OCI documentation.
Copy file name to clipboardExpand all lines: documentation/site/content/managing-domains/persistent-storage/pv-pvc.md
+6-7Lines changed: 6 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
+++
2
-
title = "Persistent Volumes and Persistent Volume Claims"
2
+
title = "PersistentVolumes and PersistentVolumeClaims"
3
3
date = 2019-02-23T16:45:09-05:00
4
4
weight = 1
5
5
description = "Use a Kubernetes PersistentVolume (PV) and PersistentVolumeClaim (PVC) to store WebLogic domain homes and log files."
@@ -15,15 +15,15 @@ The following prerequisites must be fulfilled before proceeding with the creatio
15
15
* Make sure that all the servers in the WebLogic domain are able to reach the storage location.
16
16
* Make sure that the host directory that will be used, already exists and has the appropriate file permissions set.
17
17
18
-
### Persistent Volume Storage locations
18
+
### Persistent volume storage locations
19
19
PersistentVolumes can point to different storage locations, for example NFS servers or a local directory path. For a list of available options, see the [Kubernetes documentation](https://kubernetes.io/docs/concepts/storage/persistent-volumes/).
20
20
21
-
**Note regarding HostPath**: In a single-node Kubernetes cluster, such as may be used for testing or proof of concept activities, `HOST_PATH` provides the simplest configuration. In a multinode Kubernetes cluster, a `HOST_PATH` that is located on shared storage mounted by all nodes in the Kubernetes cluster is the simplest configuration. If nodes do not have shared storage, then NFS is probably the most widelyavailable option. There are other options listed in the referenced table.
21
+
**Note regarding HostPath**: In a single-node Kubernetes cluster, such as may be used for testing or proof of concept activities, `HOST_PATH` provides the simplest configuration. In a multinode Kubernetes cluster, a `HOST_PATH` that is located on shared storage mounted by all nodes in the Kubernetes cluster is the simplest configuration. If nodes do not have shared storage, then NFS is probably the most widely-available option. There are other options listed in the referenced table.
22
22
23
-
The operator provides a sample script to create the PersistentVolume and PersistentVolumeClaim for the domain. This script must be executed before creating the domain. Beginning with operator version 4.1.0, for the Domain on PV [domain home source type]({{< relref "/managing-domains/choosing-a-model/_index.md" >}}), the operator provides options to create the PV and PVC during the domain initialization. See [Domain on PV documentation]({{< relref "/managing-domains/domain-on-pv/_index.md" >}}) or the `domain.spec.configuration.initializeDomainOnPV` section in the domain resource [schema](https://github.com/oracle/weblogic-kubernetes-operator/blob/{{< latestMinorVersion >}}/documentation/domains/Domain.md) for more details.
23
+
The operator provides a sample script to create the PersistentVolume and PersistentVolumeClaim for the domain. This script must be executed before creating the domain. Beginning with operator version 4.1.0, for the Domain on PV [domain home source type]({{< relref "/managing-domains/choosing-a-model/_index.md" >}}), the operator provides options to create the PV and PVC during the domain initialization. See the [Domain on PV documentation]({{< relref "/managing-domains/domain-on-pv/_index.md" >}}) or the `domain.spec.configuration.initializeDomainOnPV` section in the domain resource [schema](https://github.com/oracle/weblogic-kubernetes-operator/blob/{{< latestMinorVersion >}}/documentation/domains/Domain.md) for more details.
24
24
25
-
#### Persistent Volumes using HostPath approach
26
-
The `HOST_PATH` provider is the simplest case for creating a Persistent Volume. It requires creating a directory on the Kubernetes master and ensuring that it has the correct permissions:
25
+
#### Persistent volumes using HostPath approach
26
+
The `HOST_PATH` provider is the simplest case for creating a PersistentVolume. It requires creating a directory on the Kubernetes master and ensuring that it has the correct permissions:
@@ -57,4 +57,3 @@ This section provides details of common problems that might occur while running
57
57
Possibly the most common problem experienced during testing was the incorrect configuration of the PersistentVolume provider. The PersistentVolume must be accessible to all Kubernetes Nodes, and must be able to be mounted as `Read/Write/Many`. If this is not the case, the PersistentVolume creation will fail.
58
58
59
59
The simplest case is where the `HOST_PATH` provider is used. This can be either with one Kubernetes Node, or with the `HOST_PATH` residing in shared storage available at the same location on every node (for example, on an NFS mount). In this case, the path used for the PersistentVolume must have its permission bits set to 777.
Use this helper script for examining, changing permissions, or deleting the contents of the persistent volume (such as domain files or logs) for a WebLogic Domain on PV or Model in Image domain.
287
287
The script launches a Kubernetes pod named 'pvhelper' using the provided persistent volume claim name and the mount path.
288
-
You can run the 'kubectl exec' to get a shell to the running pod container and run commands to examine or clean up the contents of shared directories on the persistent volume.
289
-
Use 'kubectl delete pvhelper -n <namespace>' command to delete the Pod after it's no longer needed.
288
+
You can run the 'kubectl exec' command to get a shell to the running pod container and run commands to examine or clean up the contents of shared directories on the persistent volume.
289
+
Use the 'kubectl delete pvhelper -n <namespace>' command to delete the Pod after it's no longer needed.
290
290
291
291
Use the following command for script usage:
292
292
293
293
```
294
294
$ domain-on-pv-helper.sh -h
295
295
```
296
296
297
-
Following is an example command to launch the helper pod with PVC name `sample-domain1-weblogic-sample-pvc` and mount path `/shared`.
297
+
The following is an example command to launch the helper pod with the PVC name `sample-domain1-weblogic-sample-pvc` and mount path `/shared`.
0 commit comments