add traefik
This commit is contained in:
parent
27a821d67a
commit
862c914468
4
cluster/apps/kustomization.yaml
Normal file
4
cluster/apps/kustomization.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- networking
|
4
cluster/apps/networking/kustomization.yaml
Normal file
4
cluster/apps/networking/kustomization.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- traefik
|
67
cluster/apps/networking/traefik/helm-release.yaml
Normal file
67
cluster/apps/networking/traefik/helm-release.yaml
Normal file
|
@ -0,0 +1,67 @@
|
||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: traefik
|
||||||
|
namespace: networking
|
||||||
|
spec:
|
||||||
|
interval: 5m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
# renovate: registryUrl=https://helm.traefik.io/traefik
|
||||||
|
chart: traefik
|
||||||
|
version: 10.6.0
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: traefik-charts
|
||||||
|
namespace: flux-system
|
||||||
|
interval: 5m
|
||||||
|
values:
|
||||||
|
image:
|
||||||
|
name: traefik
|
||||||
|
deployment:
|
||||||
|
kind: Deployment
|
||||||
|
replicas: 2
|
||||||
|
service:
|
||||||
|
enabled: true
|
||||||
|
type: LoadBalancer
|
||||||
|
spec:
|
||||||
|
externalIPs:
|
||||||
|
- 10.42.42.150
|
||||||
|
externalTrafficPolicy: Local
|
||||||
|
logs:
|
||||||
|
general:
|
||||||
|
level: WARN
|
||||||
|
ingressClass:
|
||||||
|
enabled: true
|
||||||
|
isDefaultClass: true
|
||||||
|
fallbackApiVersion: v1
|
||||||
|
globalArguments:
|
||||||
|
- "--providers.kubernetesingress.ingressclass=traefik"
|
||||||
|
- "--entryPoints.websecure.forwardedHeaders.trustedIPs=10.42.42.0/23"
|
||||||
|
additionalArguments:
|
||||||
|
- "--providers.kubernetesingress.ingressendpoint.ip=10.42.42.150"
|
||||||
|
ports:
|
||||||
|
traefik:
|
||||||
|
port: 9000
|
||||||
|
expose: true
|
||||||
|
web:
|
||||||
|
port: 8000
|
||||||
|
exposedPort: 8000
|
||||||
|
expose: true
|
||||||
|
websecure:
|
||||||
|
port: 8443
|
||||||
|
exposedPort: 8443
|
||||||
|
expose: true
|
||||||
|
pilot:
|
||||||
|
enabled: false
|
||||||
|
experimental:
|
||||||
|
plugins:
|
||||||
|
enabled: false
|
||||||
|
affinity: {}
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 100Mi
|
||||||
|
cpu: 500m
|
||||||
|
limits:
|
||||||
|
memory: 500Mi
|
4
cluster/apps/networking/traefik/kustomization.yaml
Normal file
4
cluster/apps/networking/traefik/kustomization.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- helm-release.yaml
|
15
cluster/base/apps.yaml
Normal file
15
cluster/base/apps.yaml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: apps
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 10m0s
|
||||||
|
dependsOn:
|
||||||
|
- name: core
|
||||||
|
path: ./cluster/apps
|
||||||
|
prune: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: flux-system
|
|
@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- metallb-charts.yaml
|
- metallb-charts.yaml
|
||||||
|
- traefik-charts.yaml
|
||||||
|
|
10
cluster/base/flux-system/charts/helm/traefik-charts.yaml
Normal file
10
cluster/base/flux-system/charts/helm/traefik-charts.yaml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
apiVersion: source.toolkit.fluxcd.io/v1beta1
|
||||||
|
kind: HelmRepository
|
||||||
|
metadata:
|
||||||
|
name: traefik-charts
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 15m
|
||||||
|
url: https://helm.traefik.io/traefik
|
||||||
|
timeout: 3m
|
Loading…
Reference in a new issue