Files
kubernetes/storage/README.md
Dustin C. Hatch df12690958 storage: Use Authelia for Longhorn UI auth
Instead of using a static username/password and HTTP Basic
authentication for the Longhorn UI, we can now use Authelia via the
*nginx* auth subrequest functionality.
2023-01-13 21:33:14 -06:00

34 lines
821 B
Markdown

# Persistent Storage Using Longhorn
[Longhorn] is a Kubernetes-native persistent storage system. It is quite
complex, but installing it is fairly straightforward.
[Longhorn]: https://longhorn.io
## Installation
This is mostly based on the official [Install with Kubectl][0] instructions.
I wanted to add node selectors to the user-deployed and system-managed
components, to ensure that Longhorn only runs on x86_64 nodes, per the
[Node Selector][1] instructions.
```sh
kubectl apply -f longhorn.yaml
```
## Ingress
Expose the Longhorn UI outside the cluster:
```sh
kubectl apply -f longhorn-ingress.yaml
```
Authentication to the UI is handled by Authelia.
[0]: https://longhorn.io/docs/1.3.0/deploy/install/install-with-kubectl/
[1]: https://longhorn.io/docs/1.3.0/advanced-resources/deploy/node-selector/