Add longhorn storage classes

This commit is contained in:
Tanguy Herbron 2022-06-06 18:40:29 +02:00
parent b0a532b2a2
commit 130fb8aef2
2 changed files with 18 additions and 0 deletions

9
res/flat-sc.yaml Normal file
View File

@ -0,0 +1,9 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: flat-storage-class
provisioner: driver.longhorn.io
allowVolumeExpansion: true
parameters:
numberOfReplicas: '1'
staleReplicaTimeout: "2880"

9
res/redundant-sc.yaml Normal file
View File

@ -0,0 +1,9 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: redundant-storage-class
provisioner: driver.longhorn.io
allowVolumeExpansion: true
parameters:
numberOfReplicas: '3'
staleReplicaTimeout: "2880"