Update Kubernetes

Tomislav Kopić 2024-04-15 16:20:28 +00:00
parent 8b4d1fc6ae
commit c0447281f7

@ -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.