Difference between revisions of "CKA v1.15: Understand PersistentVolumeClaims (PVC) for storage"

From wikieduonline
Jump to navigation Jump to search
(Created page with "Persistent Volumes subsystem provides an API for users and administrators that abstracts details of how storage is provided from how it is consum...")
 
 
(24 intermediate revisions by one other user not shown)
Line 1: Line 1:
Persistent [[DevOps/Kubernetes/Volumes|Volumes]] subsystem provides an API for users and administrators that abstracts details of how storage is provided from how it is consumed.
+
{{Draft}}
  
  
 +
== Example ==
  
 +
[[apiVersion:]] v1
 +
[[kind:]] [[PersistentVolume]]
 +
metadata:
 +
  name: dockerfile
 +
  labels:
 +
    type: local
 +
[[spec:]]
 +
  capacity:
 +
    storage: 10Gi
 +
  accessModes:
 +
    - ReadWriteOnce
 +
  storageClassName: local-storage
 +
  hostPath:
 +
    path: /home/docker/kaniko # replace this with the output of pwd command from before, if it is different
  
== Activities ==
+
== Related commands ==
* Read https://kubernetes.io/docs/concepts/storage/persistent-volumes/
+
* <code>[[kubectl describe]] pvc mysql-pv-claim</code>
 +
* <code>[[kubectl create pvc]]</code>
 +
 
 +
== Related terms ==
 +
* [[Volumes (Kubernetes)]]
 +
* [[CKA v1.18]]: Understand persistent volumes and know how to create them
 +
* [[CKA v1.15]]: [[Understand PersistentVolumeClaims for storage]]
 +
* [[CKA v1.21]]
 +
* <code>[[kind]]: PersistentVolume</code>
 +
* <code>[[kind]]: [[PersistentVolumeClaim]]</code>
 +
* <code>[[helm install --set persistence.enabled=true grafana stable/grafana]]</code>
 +
* [[Kubernetes storage]]
  
 
== See also ==
 
== See also ==
* [[Volumes]]
+
* {{PVC}}
* [[Certified Kubernetes Administrator]]
 
  
  
[[Category:Cloud computing]]
+
[[Category:Kubernetes]]
[[Category:Containers]]
 
[[Category:Storage]]
 

Latest revision as of 09:54, 4 July 2022

This article is a Draft. Help us to complete it.


Example[edit]

apiVersion: v1
kind: PersistentVolume
metadata:
  name: dockerfile
  labels:
    type: local
spec:
  capacity:
    storage: 10Gi
  accessModes:
    - ReadWriteOnce
  storageClassName: local-storage
  hostPath:
    path: /home/docker/kaniko # replace this with the output of pwd command from before, if it is different

Related commands[edit]

Related terms[edit]

See also[edit]

Advertising: