Kubernetes.io/no-provisioner: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:


=Overview=
=Overview=
This is storage class that ca be used as default when local persistent volumes are manually provisioned.


=Example=
=Example=
<syntaxhighlight lang='yaml'>
<syntaxhighlight lang='yaml'>
apiVersion: storage.k8s.io/v1
apiVersion: storage.k8s.io/v1

Latest revision as of 02:23, 12 December 2019

Internal

Overview

This is storage class that ca be used as default when local persistent volumes are manually provisioned.

Example

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: local-storage
  annotations:
    storageclass.kubernetes.io/is-default-class: "true"
reclaimPolicy: Delete
volumeBindingMode: Immediate
provisioner: kubernetes.io/no-provisioner
volumeBindingMode: WaitForFirstConsumer