2023-04-10 06:04:29 +00:00
|
|
|
# Cluster Setup
|
|
|
|
This document goes over the process of installing the GitOps files into a cluster
|
|
|
|
|
|
|
|
|
|
|
|
Install [calico](https://docs.tigera.io/calico/latest/getting-started/kubernetes/k3s/quickstart#install-calico)
|
|
|
|
|
|
|
|
Now install the FluxCD stuff:\
|
2023-04-11 05:23:42 +00:00
|
|
|
https://github.com/larivierec/home-cluster#installation
|
|
|
|
|
|
|
|
## Uninstalling and removing all k3s data in NixOS
|
|
|
|
```shell
|
|
|
|
sudo systemctl stop k3s
|
|
|
|
sudo rm -rf /etc/rancher/k3s
|
|
|
|
sudo rm -rf /var/lib/rancher/k3s
|
|
|
|
sudo systemctl start k3s
|
|
|
|
|
|
|
|
sudo cp /etc/rancher/k3s/k3s.yaml ~/.kube/config
|
|
|
|
sudo chown $USER ~/.kube/config
|
|
|
|
sudo chmod 600 ~/.kube/config
|
2023-04-15 22:21:55 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Finishing Service Setup
|
|
|
|
|
|
|
|
### SSO (Authentik)
|
|
|
|
Many services require SSO to be setup.
|
|
|
|
|
|
|
|
Proxy Providers:
|
|
|
|
* Bazarr
|
|
|
|
* Mylar3
|
|
|
|
* Prowlarr
|
|
|
|
* qBittorrent
|
|
|
|
* Radarr
|
|
|
|
* Readarr Audiobooks
|
|
|
|
* Readarr eBooks
|
|
|
|
* Sonarr
|
|
|
|
* Prometheus
|
|
|
|
* Alertmanager
|
|
|
|
* Traefik
|
|
|
|
|
|
|
|
OpenID Providers:
|
|
|
|
* Komga
|
|
|
|
* Apache Guacamole
|
|
|
|
|
|
|
|
An LDAP Provider is also required by services. Create an LDAP provider in authentik and just let it create the kubernetes resources.
|