diff --git a/Kubernetes.md b/Kubernetes.md index 7c2a5cd..07c40c5 100644 --- a/Kubernetes.md +++ b/Kubernetes.md @@ -225,6 +225,47 @@ then apply it: kubectl apply -f file.yml ``` +### Additional storage class +The default storage class that comes with this configuration: +``` +kind: StorageClass +apiVersion: storage.k8s.io/v1 +metadata: + name: longhorn +provisioner: driver.longhorn.io +allowVolumeExpansion: true +reclaimPolicy: "Retain" +volumeBindingMode: Immediate +parameters: + numberOfReplicas: "3" + staleReplicaTimeout: "30" + fromBackup: "" + fsType: "ext4" + dataLocality: "disabled" + unmapMarkSnapChainRemoved: "ignored" +``` + +You may want to create a new storage class with a different config, for example, +if you prefer performance over redundancy and want to save space. +``` +kind: StorageClass +apiVersion: storage.k8s.io/v1 +metadata: + name: longhorn-fast +provisioner: driver.longhorn.io +allowVolumeExpansion: true +reclaimPolicy: "Retain" +volumeBindingMode: Immediate +parameters: + numberOfReplicas: "1" + staleReplicaTimeout: "30" + fromBackup: "" + fsType: "ext4" + dataLocality: "best-effort" + unmapMarkSnapChainRemoved: "ignored" +``` + + # Kubernetes Dashboard I you want to be extra fancy you can deploy a web UI Dashboard for your kubernetes.