Track longhorn notes, eventhough it blew up.
This commit is contained in:
parent
043b546ba4
commit
3465fd1d5b
30
notes.md
30
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
|
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
|
# Future Ideas
|
||||||
|
|
||||||
If we later want to do this on an overlay network:
|
If we later want to do this on an overlay network:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue