Skip to content

Commit 6fc7cd9

Browse files
authored
Merge pull request #153 from epics-containers/k3s-rwx-pvcs
K3s rwx pvcs
2 parents b4941e4 + 00887a2 commit 6fc7cd9

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

docs/tutorials/setup_k8s.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,7 @@ routing requirement.
2626

2727
## Platform Choice
2828

29-
These instructions have been tested on the following platforms. The simplest
30-
option is to use a linux distribution that is supported by k3s.
31-
32-
```{eval-rst}
33-
========================== ============================================
34-
Ubuntu 22.04 and newer any modern linux distro should also work
35-
Raspberry Pi OS 2021-05-07 See `raspberry`
36-
========================== ============================================
37-
```
29+
These instructions have been tested on Ubuntu 22.04; however, any modern Linux distribution that is supported by k3s and running on a modern x86 machine should also work.
3830

3931
Note that K3S provides a good uninstaller that will clean up your system if you decide to back out. So there is no harm in trying it out.
4032

@@ -93,7 +85,7 @@ mkdir ~/.kube
9385
sudo scp /etc/rancher/k3s/k3s.yaml <YOUR_ACCOUNT>@<YOUR_WORKSTATION>:.kube/config
9486
```
9587

96-
If you do have separate workstation then edit the file .kube/config replacing 127.0.0.1 with your server's IP Address. For a single machine the file is leftas is.
88+
If you do have separate workstation then edit the file .kube/config replacing 127.0.0.1 with your server's IP Address. For a single machine the file is left as is.
9789

9890
### Install helm
9991

@@ -139,6 +131,24 @@ kubectl config set-context t03-beamline --namespace=t03-beamline --user=default
139131
kubectl config use-context t03-beamline
140132
```
141133

134+
### Install persistent volume support
135+
136+
As per <https://docs.k3s.io/storage/>, the "Longhorn" distributed block storage system can be set up in our cluster. This is done in order to get support for ReadWriteMany persistent volume claims, which is not supported by the out of the box "Local Path Provisioner".
137+
138+
```bash
139+
# Install dependancies
140+
sudo apt-get update; sudo apt-get install -y open-iscsi nfs-common jq
141+
142+
# Set up longhorn
143+
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.7.0/deploy/longhorn.yaml
144+
145+
# Monitor while Longhorn starts up
146+
kubectl get pods --namespace longhorn-system --watch
147+
148+
# Confirm ready
149+
kubectl get storageclass
150+
```
151+
142152
### Completed
143153

144154
That's it. You now have installed the necessary software to start experimenting with IOCs on Kubernetes.

0 commit comments

Comments
 (0)