feat(kustomization): Traefik can now be deployed using Kustomize
Add kustomization files to traefik, for both ingresses.
This commit is contained in:
parent
99734efe1a
commit
982120fe36
@ -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 .
|
||||
|
@ -8,3 +8,4 @@ resources:
|
||||
- res
|
||||
- https://raw.githubusercontent.com/longhorn/longhorn/master/deploy/longhorn.yaml
|
||||
- longhorn
|
||||
- traefik
|
||||
|
7
traefik/0-rbac/kustomization.yaml
Normal file
7
traefik/0-rbac/kustomization.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- clusterrole.yaml
|
||||
- clusterrolebinding.yaml
|
||||
- serviceaccount.yaml
|
7
traefik/1-traefik-external/kustomization.yaml
Normal file
7
traefik/1-traefik-external/kustomization.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- pvc.yaml
|
||||
- deployment.yaml
|
||||
- service.yaml
|
7
traefik/1-traefik-internal/kustomization.yaml
Normal file
7
traefik/1-traefik-internal/kustomization.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- pvc.yaml
|
||||
- deployment.yaml
|
||||
- service.yaml
|
7
traefik/kustomization.yaml
Normal file
7
traefik/kustomization.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- 0-rbac
|
||||
- 1-traefik-internal
|
||||
- 1-traefik-external
|
Loading…
Reference in New Issue
Block a user