Add local storage classes

main
trivernis 1 year ago
parent 5e4a24ed7c
commit 8653428b56
Signed by: Trivernis
GPG Key ID: 7E6D18B61C8D2F4B

@ -6,3 +6,5 @@ metadata:
resources:
- app/config.yaml
- app/deploy.yaml
- app/hdd-storageclass.yaml
- app/ssd-storageclass.yaml

@ -9,11 +9,11 @@ data:
"nodePathMap":[
{
"node":"DEFAULT_PATH_FOR_NON_LISTED_NODES",
"paths":["/opt/local-path-provisioner"]
"paths":["/var/cluster-local-storage"]
},
{
"node":"cluster-dedicated-1",
"paths":["/opt/local-path-provisioner", "/mnt/data/cluster-local-storage"]
"paths":["/var/cluster-local-storage", "/mnt/data/cluster-local-storage"]
}
]
}

@ -0,0 +1,10 @@
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: local-hdd
provisioner: cluster.local/local-path-provisioner
parameters:
nodePath: /mnt/data/cluster-local-storage
fromBackup: ""
volumeBindingMode: WaitForFirstConsumer
reclaimPolicy: Delete

@ -0,0 +1,12 @@
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: local-ssd
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: cluster.local/local-path-provisioner
parameters:
nodePath: /var/cluster-local-storage
fromBackup: ""
volumeBindingMode: WaitForFirstConsumer
reclaimPolicy: Delete

@ -3,7 +3,7 @@ apiVersion: storage.k8s.io/v1
metadata:
name: longhorn-fast
annotations:
storageclass.kubernetes.io/is-default-class: "true"
storageclass.kubernetes.io/is-default-class: "false"
provisioner: driver.longhorn.io
allowVolumeExpansion: true
reclaimPolicy: "Delete"

Loading…
Cancel
Save