Track longhorn notes, eventhough it blew up.

This commit is contained in:
James Pace 2023-02-17 20:13:12 -05:00
parent 043b546ba4
commit 3465fd1d5b
1 changed files with 30 additions and 0 deletions

View File

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