Persistent Volume Definition File: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * OpenShft Concepts =Example= <pre> { "apiVersion": "v1", "kind": "PersistentVolume", "metadata":...")
 
Line 2: Line 2:


* [[OpenShift_Concepts#Persistent_Volume_Definition_File|OpenShft Concepts]]
* [[OpenShift_Concepts#Persistent_Volume_Definition_File|OpenShft Concepts]]
* [[OpenShift_Configuration#Core_Objects|OpenShift Configuration]]


=Example=
=Example=

Revision as of 01:23, 6 February 2018

Internal

Example

{
  "apiVersion": "v1",
  "kind": "PersistentVolume",
  "metadata": {
    "name": "volume1"
  },
  "spec": {
    "capacity": {
        "storage": "1Gi"
    },
    "accessModes": [ "ReadWriteOnce" ],
    "nfs": {
        "path": "/exports/volume1",
        "server": "1.2.3.4"
    },
    "persistentVolumeReclaimPolicy": "Recycle"
  }
}