Add dev cluster setup documentation
This commit is contained in:
parent
b9139f2f22
commit
741721b389
17
README.md
17
README.md
@ -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`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user