Add dev cluster setup documentation

This commit is contained in:
Tanguy Herbron 2022-09-10 03:44:07 +02:00
parent b9139f2f22
commit 741721b389

View File

@ -46,7 +46,6 @@ longhorn
└───<backup_date>.sql └───<backup_date>.sql
│ ... │ ...
``` ```
## Completed ## Completed
- Add TLS certificates for every http applications - Add TLS certificates for every http applications
@ -56,13 +55,20 @@ longhorn
- Write CI/CD pipeline to deploy cluster - Write CI/CD pipeline to deploy cluster
- Setup internal traefik with nodeport as reverse proxy for internal only services - Setup internal traefik with nodeport as reverse proxy for internal only services
- Setup DB container sidecars for automated backups to Longhorn volume - Setup DB container sidecars for automated backups to Longhorn volume
- Setup secrets configuration through CI/CD variable injection
- ~~Look into CockroachDB for redundant database~~ Judged too complicated, moving to a 1 to 1 relationship between services and databases - ~~Look into CockroachDB for redundant database~~ Judged too complicated, moving to a 1 to 1 relationship between services and databases
- ~~Configure IP range accessibility through Traefik (Internal vs external services)~~ Impossible because of flannel ip-masq - ~~Configure IP range accessibility through Traefik (Internal vs external services)~~ Impossible because of flannel ip-masq
## Notes ## Notes
# Cluster base setup
Add node to the list of available load balancer Add node to the list of available load balancer
`kubectl label node <node-name> svccontroller.k3s.cattle.io/enablelb=true` `kubectl label node <node-name> svccontroller.k3s.cattle.io/enablelb=true`
Setup OVH configuration
`kubectl apply -f ovh-config.yaml`
Install traefik through helm Install traefik through helm
``` ```
helm repo add traefik https://helm.traefik.io/traefik helm repo add traefik https://helm.traefik.io/traefik
@ -70,8 +76,17 @@ helm repo update
helm install -f helm/traefik/values.yaml traefik traefik/traefik helm install -f helm/traefik/values.yaml traefik traefik/traefik
``` ```
Setup SSL certificates
```
kubectl apply -f ovh-config.yaml
```
Install longhorn Install longhorn
``` ```
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/longhorn.yaml kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/longhorn.yaml
``` ```
Add longhorn storage classes
`kubectl apply -f res`