OpenShift PersistentVolume Operations: Difference between revisions
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
=Create a Persistent Volume= | =Create a Persistent Volume= | ||
==NFS== | |||
<pre> | <pre> | ||
Line 26: | Line 28: | ||
server: support.local | server: support.local | ||
</pre> | </pre> | ||
Make sure the "support.local" server is accessible from any node that will use the volume, and the /support-nfs-storage/metrics is exported and has sufficient permissions. |
Revision as of 05:22, 17 October 2017
Internal
Delete a Persistent Volume
oc delete pv <persistent-volume-name>
oc delete pv metrics-volume
Create a Persistent Volume
NFS
apiVersion: v1 kind: PersistentVolume metadata: name: metrics-volume spec: capacity: storage: 10Gi accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Retain nfs: path: /support-nfs-storage/metrics server: support.local
Make sure the "support.local" server is accessible from any node that will use the volume, and the /support-nfs-storage/metrics is exported and has sufficient permissions.