diff --git a/notes.md b/notes.md index 84c677b..dc84199 100644 --- a/notes.md +++ b/notes.md @@ -204,6 +204,36 @@ tkn pr describe --namespace j7s-ci --last -o jsonpath="{.metadata.annotations.ch tkn pr describe --namespace j7s-ci --last -o jsonpath="{.metadata.annotations.chains\.tekton\.dev/payload-pipelinerun-$TASKRUN_UID}" | base64 -d > payload ``` +## Longhorn + +Postgres did not like NFS show I'm trying Longhorn. +Added Centos Node to cluster. Disabled firewalld and selinux... + +Label k3s-nfs for storage using longhorn: +``` +kubectl label nodes k3s-nfs node.longhorn.io/create-default-disk=true +``` +Install longhorn using helm and only putting storage on disk with that +label: +``` +helm repo add longhorn https://charts.longhorn.io +helm repo update +helm install longhorn longhorn/longhorn --namespace longhorn-system --create-namespace --set defaultSettings.createDefaultDiskLabeledNodes=true +``` +On rhel nfs host: +``` +sudo dnf install libiscsi iscsi-initiator-util +sudo su +echo "InitiatorName=$(/sbin/iscsi-iname)" > /etc/iscsi/initiatorname.iscsi +systemctl enable iscsid +systemctl start iscsid +``` +On all nodes: +``` +sudo apt install open-iscsi +``` + + # Future Ideas If we later want to do this on an overlay network: