OpenShift PersistentVolume Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * OpenShift Operations =Delete a Persistent Volume= =Create a Persistent Volume= <pre> apiVersion: v1 kind: PersistentVolume...")
 
Line 5: Line 5:
=Delete a Persistent Volume=
=Delete a Persistent Volume=


 
oc delete pv <''persistent-volume-name''>
oc delete pv metrics-volume


=Create a Persistent Volume=
=Create a Persistent Volume=

Revision as of 05:18, 17 October 2017

Internal

Delete a Persistent Volume

oc delete pv <persistent-volume-name>
oc delete pv metrics-volume

Create a Persistent Volume

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