Kubernetes Persistent Volume Claim Manifest: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 1: Line 1:
=Internal=
=Internal=
* [[Kubernetes_Storage_Concepts#Persistent_Volume_Claim_.28PVC.29|Kubernetes Storage Concepts]]
* [[Kubernetes_Storage_Concepts#Persistent_Volume_Claim_.28PVC.29|Kubernetes Storage Concepts]]
=Example=
[[Kubernetes_Manifests#apiVersion|apiVersion]]: v1
[[Kubernetes_Manifests#kind|kind]]: PersistentVolumeClaim
[[Kubernetes_Manifest_Metadata#Overview|metadata]]:
  [[Kubernetes_Manifest_Metadata#name|name]]: pvc1
[[Kubernetes_Manifests#spec|spec]]:
  [[#accessModes|accessModes]]:
  - RedWriteOnce
  [[#storageClassName|storageClassName]]: test
  [[#resources|resources]]:
    [[#requests|requests]]:
      [[#storage|storage]]: 10 Gi
  ...
=.spec Elements=
==accessModes==
{{Internal|Kubernetes_Storage_Concepts#Access_Mode|Access Mode}}
==storageClassName==
==resources==
===requests===
====storage====

Revision as of 05:51, 10 December 2019

Internal

Example

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: pvc1
spec:
  accessModes:
  - RedWriteOnce
  storageClassName: test
  resources:
    requests:
      storage: 10 Gi
  ...

.spec Elements

accessModes

Access Mode

storageClassName

resources

requests

storage