From c0447281f775194180b73eed0989bef00e472502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomislav=20Kopi=C4=87?= Date: Mon, 15 Apr 2024 16:20:28 +0000 Subject: [PATCH] Update Kubernetes --- Kubernetes.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) 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.