Longhorn
Information
Section titled “Information”Install
Section titled “Install”-
This current information sheet is in reference to Longhorn 1.3v , be aware that 1.4v will be in production around 2023. Thus this might become obsolete information.
-
Before installing, look over the requirements for storage.
-
Requirements for 1.3v Longhorn
-
Ubuntu NFS Setup
-
Make sure system is updated / upgrade
-
Terminal window sudo apt-get update && sudo apt-get upgrade -y
-
-
Install
nfs-common
andnfs-kernel-server
-
Terminal window sudo apt-get install nfs-common nfs-kernel-server -y
-
-
Namespace
Section titled “Namespace”-
Creating a custom namespace to hold the storage.
Kubectl command to create the namespace:
-
Terminal window kubectl create namespace storage -
std out: namespace/storage created
-
-
This namespace will be where we store our production data.
Longhorn Uno
Section titled “Longhorn Uno”Under storage class, we will be creating the longhorn uno and then deploying it under that.
annotations: longhorn.io/last-applied-configmap: | kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name: longhorn-uno annotations: storageclass.kubernetes.io/is-default-class: "true" provisioner: driver.longhorn.io allowVolumeExpansion: true reclaimPolicy: "Delete" volumeBindingMode: Immediate parameters: numberOfReplicas: "1" staleReplicaTimeout: "30" fromBackup: "" fsType: "ext4" dataLocality: "best-effort" unmapMarkSnapChainRemoved: "ignored" disableRevisionCounter: "true" dataEngine: "v1" storageclass.beta.kubernetes.io/is-default-class: 'false' storageclass.kubernetes.io/is-default-class: 'false'