Difference between revisions of "Create a PersistentVolumeClaim"

From wikieduonline
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<pre>
 
apiVersion: v1
 
kind: PersistentVolumeClaim
 
metadata:
 
  name: xfs-pvc
 
spec:
 
  storageClassName: xfs-class
 
  accessModes:
 
    - ReadWriteOnce
 
  resources:
 
    requests:
 
      storage: 10Gi
 
</pre>
 
  
 +
pd-xfs-pvc.yaml
  
 +
apiVersion: v1
 +
[[kind: PersistentVolumeClaim]]
 +
metadata:
 +
  name: xfs-pvc
 +
spec:
 +
  [[storageClassName]]: xfs-class
 +
  accessModes:
 +
    - ReadWriteOnce
 +
  resources:
 +
    requests:
 +
      storage: 10Gi
 +
 +
kubectl apply -f pd-xfs-pvc.yaml
 +
 +
 +
 +
{{kind: PersistentVolumeClaim}}
 +
 +
== Related ==
 +
* [[Kubernetes Persistent Volumes (PV)]]
  
 
== See also ==
 
== See also ==
 +
* {{PVC}}
 
* {{Kubernetes storage}}
 
* {{Kubernetes storage}}
  
 
[[Category:K8s]]
 
[[Category:K8s]]

Latest revision as of 11:52, 2 February 2024

Advertising: