Kubernetes Persistent Volume Manifest: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Kubernetes Storage Concepts")
 
Line 1: Line 1:
=Internal=
=Internal=
* [[Kubernetes_Storage_Concepts#Persistent_Volume_.28PV.29|Kubernetes Storage Concepts]]
* [[Kubernetes_Storage_Concepts#Persistent_Volume_.28PV.29|Kubernetes Storage Concepts]]
=Example=
[[Kubernetes_Manifests#apiVersion|apiVersion]]: v1
[[Kubernetes_Manifests#kind|kind]]: PersistentVolume
[[Kubernetes_Manifest_Metadata#Overview|metadata]]:
  [[Kubernetes_Manifest_Metadata#name|name]]: blue
[[Kubernetes_Manifests#spec|spec]]:
  accessModes:
  - RedWriteOnce
  storageClassName: test
  capacity:
    storage: 10Gi
  persistentVolumeReclaimPolicy: Retain
  ...

Revision as of 04:58, 10 December 2019

Internal

Example

apiVersion: v1
kind: PersistentVolume
metadata:
  name: blue
spec:
  accessModes:
  - RedWriteOnce
  storageClassName: test
  capacity:
    storage: 10Gi
  persistentVolumeReclaimPolicy: Retain
  ...