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

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
  
 
  [[apiVersion:]] v1
 
  [[apiVersion:]] v1
  kind: PersistentVolume
+
  [[kind:]] [[PersistentVolume]]
 
  metadata:
 
  metadata:
 
   name: dockerfile
 
   name: dockerfile
 
   labels:
 
   labels:
 
     type: local
 
     type: local
  spec:
+
  [[spec:]]
 
   capacity:
 
   capacity:
 
     storage: 10Gi
 
     storage: 10Gi

Revision as of 07:08, 25 April 2021

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


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

Related commands


Related terms

See also

Advertising: