add traefik to all clusters

This commit is contained in:
Ryan Cavicchioni 2025-01-21 23:31:21 -06:00
parent 547980a1d3
commit 9b97276263
Signed by: ryanc
SSH Key Fingerprint: SHA256:KbXiwUnZnHFwFtt3Bytd+F3FN9pPHn1Z1cxMIE1TPbg
4 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,8 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: traefik
resources:
- namespace.yaml
- repository.yaml
- release.yaml

View File

@ -0,0 +1,5 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: traefik

25
apps/traefik/release.yaml Normal file
View File

@ -0,0 +1,25 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: traefik
namespace: traefik
spec:
releaseName: traefik
chart:
spec:
chart: traefik
sourceRef:
kind: HelmRepository
name: traefik
interval: 50m
install:
remediation:
retries: 3
values:
providers.kubernetesIngress.publishedService.enabled: true
additionalArguments:
- --providers.kubernetesingress.ingressendpoint.publishedservice=traefik/traefik
service:
spec:
externalTrafficPolicy: Local

View File

@ -0,0 +1,9 @@
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: traefik
namespace: traefik
spec:
interval: 5m
url: https://traefik.github.io/charts