OpenShift Persistent Volume Claim Definition

From NovaOrdis Knowledge Base
Revision as of 19:59, 23 November 2017 by Ovidiu (talk | contribs) (→‎Example)
Jump to navigation Jump to search

External

Internal

Example

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: gogs-data
  labels:
    app: gogs
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 1Gi
{
    "apiVersion": "v1",
    "kind": "PersistentVolumeClaim",
    "metadata": {
        "name": "claim1"
    },
    "spec": {
        "accessModes": [ "ReadWriteOnce" ],
        "resources": {
            "requests": {
                "storage": "1Gi"
            }
        }
    }
}