OpenShift Persistent Volume Claim Definition: Difference between revisions
Jump to navigation
Jump to search
m (Ovidiu moved page OpenShift Persistent Volume Claim to OpenShift Persistent Volume Claim Definition without leaving a redirect) |
|||
Line 23: | Line 23: | ||
requests: | requests: | ||
storage: 1Gi | storage: 1Gi | ||
</syntaxhighlight> | |||
<syntaxhighlight lang='json'> | |||
{ | |||
"apiVersion": "v1", | |||
"kind": "PersistentVolumeClaim", | |||
"metadata": { | |||
"name": "claim1" | |||
}, | |||
"spec": { | |||
"accessModes": [ "ReadWriteOnce" ], | |||
"resources": { | |||
"requests": { | |||
"storage": "1Gi" | |||
} | |||
} | |||
} | |||
} | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 19:59, 23 November 2017
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"
}
}
}
}