SovereignCloudStack / moin-cluster-config

Configuration for our community cluster moin.k8s.scs.community
https://scs.community/
Apache License 2.0
2 stars 0 forks source link

Default storage class #43

Closed mxmxchere closed 3 months ago

mxmxchere commented 4 months ago

Kamaji and the monitoring stack use persistent volumes. I have manually set csi-cinder-sc-delete as default class. Either we have to set a default class via Git or we have to set explicit storageclasses per persistent volume. The downside with the latter approach is that we assume to have storage class x in a cluster which we currently have no reason to assume.

chess-knight commented 3 months ago

In the KaaS v1, there is a default storage class https://github.com/SovereignCloudStack/k8s-cluster-api-provider/blob/main/terraform/files/kubernetes-manifests.d/cinder-provider.yaml so that we can set it also in the KaaS v2. It shouldn't be a problem via cluster-addon helm values see https://github.com/kubernetes/cloud-provider-openstack/blob/master/charts/cinder-csi-plugin/templates/storageclass.yaml, e.g. set .Values.storageClass.delete.isDefault to true.

chess-knight commented 3 months ago

Related standard https://github.com/SovereignCloudStack/standards/issues/652