feat(traefik): Adding Traefik using ArgoCD

This commit is contained in:
Vegard Hagen
2023-01-09 19:33:55 +01:00
parent 95e6f9b320
commit d265a4d644
2 changed files with 34 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ metadata:
spec:
sourceRepos:
- 'https://github.com/vehagn/*'
- 'https://helm.traefik.io/*'
destinations:
- namespace: 'argocd'
server: '*'
@@ -13,6 +14,8 @@ spec:
server: '*'
- namespace: 'metallb-system'
server: '*'
- namespace: 'traefik-system'
server: '*'
clusterResourceWhitelist:
- group: '*'
kind: '*'

31
infra/traefikApp.yaml Normal file
View File

@@ -0,0 +1,31 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: traefik
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: infrastructure
source:
chart: traefik
repoURL: https://helm.traefik.io/traefik
targetRevision: 20.7.0
helm:
#parameters:
# - name: providers.kubernetesCRD.allowCrossNamespace
# value: "true"
# - name: additionalArguments
# value: "--api.insecure"
# - name: persistence.enabled
# value: "true"
valueFiles:
- https://raw.githubusercontent.com/vehagn/homelab/main/helm/traefik-values.yaml
destination:
namespace: traefik-system
name: in-cluster
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true