From c1e1a078791fc8891cbeae4f2ac7e35f2713efdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=20Eisenbl=C3=A4tter?= Date: Thu, 10 Oct 2024 13:40:32 +0200 Subject: [PATCH] add storagecall docs (#33) --- docs/_managedk8s/FAQ/storageclass/index.en.md | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 docs/_managedk8s/FAQ/storageclass/index.en.md diff --git a/docs/_managedk8s/FAQ/storageclass/index.en.md b/docs/_managedk8s/FAQ/storageclass/index.en.md new file mode 100644 index 00000000..645bae7b --- /dev/null +++ b/docs/_managedk8s/FAQ/storageclass/index.en.md @@ -0,0 +1,50 @@ +--- +title: StorageClass Setup +lang: "en" +permalink: /managedk8s/storageclasses/ +nav_order: 4200 +parent: FAQ +--- +# StorageClass Setup + +We provide one default storage class per Cluster. +> **Caution:** +> This is managed by WIIT and can be **overwritten at any time**. Please create a separate storage class for your changes. + +``` +kubectl get storageclasses.storage.k8s.io +NAME PROVISIONER AGE +cinder-csi (default) cinder.csi.openstack.org 6h45m +``` + +## Openstack Volume Types + +The Openstack volume types sorted by maximum possible IOPS: + +* low-iops +* default <- used in the default class +* high-iops + +### Adding Your Own Classes + +If you need use one of the other types, you can add your own definitions. + +Example: + +``` +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: my-high-iops-class +provisioner: cinder.csi.openstack.org +parameters: + type: high-iops +``` + +Apply with `kubectl apply -f storage-class.yaml`. + +* `name`: Choose a unique one, as we don't want to interfere with the default names. +* `provisioner`: Use the one of your cluster. You can always have a look in the default class to verify the right provider. +* `type`: Use one of the [official provided types](/optimist/specs/volume_specification/#volume-type-list) from the Optimist platform (at the time of writing low-iops and high-iops). + +To use the new storage class you need to change your volumes definitions and add the new StorageClass name.