From 741721b3895d96b06bc34c52117695eb1b6093d6 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Sat, 10 Sep 2022 03:44:07 +0200 Subject: [PATCH] Add dev cluster setup documentation --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0e9334a..fd9efbc 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,6 @@ longhorn └───.sql │ ... ``` - ## Completed - Add TLS certificates for every http applications @@ -56,13 +55,20 @@ longhorn - Write CI/CD pipeline to deploy cluster - Setup internal traefik with nodeport as reverse proxy for internal only services - 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 - ~~Configure IP range accessibility through Traefik (Internal vs external services)~~ Impossible because of flannel ip-masq ## Notes +# Cluster base setup Add node to the list of available load balancer `kubectl label node svccontroller.k3s.cattle.io/enablelb=true` + +Setup OVH configuration +`kubectl apply -f ovh-config.yaml` + + Install traefik through helm ``` 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 ``` +Setup SSL certificates +``` +kubectl apply -f ovh-config.yaml +``` + Install longhorn ``` kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/longhorn.yaml ``` + +Add longhorn storage classes +`kubectl apply -f res` +