feat(kustomization): Traefik can now be deployed using Kustomize

Add kustomization files to traefik, for both ingresses.
This commit is contained in:
Tanguy Herbron 2022-12-31 00:16:17 +01:00
parent 99734efe1a
commit 982120fe36
6 changed files with 32 additions and 4 deletions

View File

@ -67,13 +67,12 @@ longhorn
- ~~Define namespaces through yaml files~~
- ~~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
- Schedule longhorn S3 backups
- Move to new naming conventions for files
- Move secrets to separate, private Git repository ?
## Notes
### Cluster base setup
Add node to the list of available load balancer
`kubectl label node <node-name> svccontroller.k3s.cattle.io/enablelb=true`
NOTE: For development, don't forget to also add the `cp` to the LB list, in order to access local only services
Setup the cluster's backbone
```
kubectl apply -k .

View File

@ -8,3 +8,4 @@ resources:
- res
- https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/longhorn.yaml
- longhorn
- traefik

View File

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- clusterrole.yaml
- clusterrolebinding.yaml
- serviceaccount.yaml

View File

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- pvc.yaml
- deployment.yaml
- service.yaml

View File

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- pvc.yaml
- deployment.yaml
- service.yaml

View File

@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- 0-rbac
- 1-traefik-internal
- 1-traefik-external