From b39f56b14d3dded33dc303e1f17330082708f8de Mon Sep 17 00:00:00 2001 From: Federico Stagni Date: Tue, 17 Sep 2024 16:51:18 +0200 Subject: [PATCH 1/3] add info about longhorn disk --- k3s/README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/k3s/README.md b/k3s/README.md index a380d40..5de2f67 100644 --- a/k3s/README.md +++ b/k3s/README.md @@ -169,7 +169,14 @@ kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.5.3/depl wget https://raw.githubusercontent.com/longhorn/longhorn/v1.5.3/deploy/longhorn.yaml ``` -edit `longhorn.yaml` and modify `numberOfReplicas: ` (i.e 1 or 2) +edit `longhorn.yaml` and +- modify `numberOfReplicas: ` (i.e 1 or 2) +- OPTIONAL: look for the `longhorn-default-setting` section. At this point, depending on the configuration you applied on your (Virtual) machine(s), modify its `data` part as following: +``` + data: + default-setting.yaml: |- + default-data-path: /mnt/longhorn # reflect what is the config you'd like to apply. Without, the default is /var/lib/longhorn +``` ```bash kubectl apply -f longhorn.yaml From 714a9ccd44ba34ce0eb8f0bb9605dfa2f5070e26 Mon Sep 17 00:00:00 2001 From: Federico Stagni Date: Tue, 17 Sep 2024 16:57:50 +0200 Subject: [PATCH 2/3] add info about longhorn dashboard --- k3s/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/k3s/README.md b/k3s/README.md index 5de2f67..38fe3ea 100644 --- a/k3s/README.md +++ b/k3s/README.md @@ -204,10 +204,14 @@ sed -i -e "s/storageclass.kubernetes.io\/is-default-class: \"true\"/storageclass ``` +Now, on your client, start the longhorn UI with ```bash kubectl port-forward -n longhorn-system svc/longhorn-frontend 8080:80 & ``` +and then visualize it by visiting http://localhost:8080 + + ## What is your hostname ? Single node: easy From 15434db4f9045cc7b98179ccb1445b92f967e241 Mon Sep 17 00:00:00 2001 From: Federico Stagni Date: Tue, 17 Sep 2024 17:06:40 +0200 Subject: [PATCH 3/3] added post-installation tips --- k3s/README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/k3s/README.md b/k3s/README.md index 38fe3ea..41f9083 100644 --- a/k3s/README.md +++ b/k3s/README.md @@ -169,7 +169,7 @@ kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.5.3/depl wget https://raw.githubusercontent.com/longhorn/longhorn/v1.5.3/deploy/longhorn.yaml ``` -edit `longhorn.yaml` and +edit `longhorn.yaml` and - modify `numberOfReplicas: ` (i.e 1 or 2) - OPTIONAL: look for the `longhorn-default-setting` section. At this point, depending on the configuration you applied on your (Virtual) machine(s), modify its `data` part as following: ``` @@ -227,7 +227,6 @@ Few tutorials: ## Deploy diracx -------------------------- ```bash # Clone diracx repositories @@ -264,6 +263,12 @@ git add default.yml git commit -m 'Initial config' ``` +## Post-install tips + +In case you would like to make us of the services installed (e.g. MySQL or OpenSearch) from outisde the kubernetes cluster, there are different solutions and configurations to make. LoadBalancer, NodePort, or Ingress are the options. One of these would need to be set out. + +Similar considerations apply for the use of certificates. See https://github.com/DIRACGrid/diracx-charts/issues/107 + ## Uninstall k3s on main server https://docs.k3s.io/installation/uninstall