Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs update #118

Merged
merged 3 commits into from
Jan 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions k3s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <number of nodes>` (i.e 1 or 2)
edit `longhorn.yaml` and
- modify `numberOfReplicas: <number of nodes>` (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
Expand Down Expand Up @@ -197,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
Expand All @@ -216,7 +227,6 @@ Few tutorials:

## Deploy diracx

-------------------------
```bash
# Clone diracx repositories

Expand Down Expand Up @@ -253,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
Expand Down
Loading