diff --git a/infrastructure/traefik/application.yaml b/infrastructure/traefik/application.yaml new file mode 100644 index 0000000..0afe457 --- /dev/null +++ b/infrastructure/traefik/application.yaml @@ -0,0 +1,24 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: traefik + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "2" # Läuft nach der Grund-Infra +spec: + project: default + source: + repoURL: https://helm.traefik.io/traefik + targetRevision: 31.0.0 # Hier ggf. die aktuellste Chart-Version prüfen + chart: traefik + helm: + valueFiles: + # Hier zeigen wir auf die values.yaml im gleichen Ordner + - values.yaml + destination: + server: 'https://kubernetes.default.svc' + namespace: traefik # WICHTIG: Erstelle den Namespace manuell oder via Argo + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/infrastructure/traefik/values.yaml b/infrastructure/traefik/values.yaml new file mode 100644 index 0000000..5a0ee50 --- /dev/null +++ b/infrastructure/traefik/values.yaml @@ -0,0 +1,21 @@ +# infrastructure/traefik/values.yaml +deployment: + kind: Deployment + +ports: + web: + port: 80 + websecure: + port: 443 + +# Aktiviere das Dashboard für die Übersicht (optional) +ingressRoute: + dashboard: + enabled: true + matchRule: Host(`traefik.home.local`) + entryPoints: ["web"] + +# Wichtig: Macht Traefik im Netzwerk erreichbar +service: + type: LoadBalancer + # Falls du MetalLB nutzt, könntest du hier Annotationen hinzufügen