Kubernetes Storage Class Manifest: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 9: Line 9:
   annotations:
   annotations:
     <span id=default_storageclass_manifest'></span>storageclass.kubernetes.io/[[Kubernetes_Storage_Concepts#Default_Storage_Class|is-default-class]]: "true"
     <span id=default_storageclass_manifest'></span>storageclass.kubernetes.io/[[Kubernetes_Storage_Concepts#Default_Storage_Class|is-default-class]]: "true"
  reclaimPolicy: Delete
  volumeBindingMode: Immediate
  <span id='provisioner_metadata'></span>[[#provisioner|provisioner]]: kubernetes.io/aws-ebs
  <span id='provisioner_metadata'></span>[[#provisioner|provisioner]]: kubernetes.io/aws-ebs
  <span id='parameters_metadata'></span>[[#parameters|parameters]]:
  <span id='parameters_metadata'></span>[[#parameters|parameters]]:

Revision as of 18:13, 11 December 2019

Internal

Example

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: fast
  annotations:
    storageclass.kubernetes.io/is-default-class: "true"
 reclaimPolicy: Delete
 volumeBindingMode: Immediate
provisioner: kubernetes.io/aws-ebs
parameters:
  type: io1
  zone: us-west-2
  ipsPerGb: "10"
  ...

Elements

provisioner

provisioner tells Kubernetes which storage plugin to use.

parameters

The parameters section is for plugin-specific values, and each plugin supports its own set of values.