Refactor ArgoCD HTTPRoute configuration and update sync policy for automated management

This commit is contained in:
Marco van Zijl 2025-11-08 15:33:54 +01:00
parent 223929de77
commit 27aecf6e78
5 changed files with 25 additions and 49 deletions

View File

@ -1,20 +0,0 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: argocd-server
namespace: {{ .Release.Namespace }}
spec:
parentRefs:
- name: traefik-gateway
namespace: traefik
sectionName: web
hostnames:
- {{ index .Values "argo-cd" "global" "domain" | quote }}
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: argocd-server
port: 80

View File

@ -5,3 +5,25 @@ argo-cd:
server: server:
ingress: ingress:
enabled: false enabled: false
extraObjects:
- apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: argocd-server
namespace: argocd
spec:
parentRefs:
- name: traefik-gateway
namespace: traefik
sectionName: websecure
hostnames:
- "argocd.noxxos.nl"
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: argocd-server
port: 80

View File

@ -20,12 +20,6 @@ traefik:
ports: ports:
websecure: websecure:
asDefault: true asDefault: true
traefik:
port: 9000
expose:
default: true
exposedPort: 9000
protocol: TCP
providers: providers:
kubernetesCRD: kubernetesCRD:
@ -66,7 +60,7 @@ traefik:
spec: spec:
parentRefs: parentRefs:
- name: traefik-gateway - name: traefik-gateway
sectionName: web sectionName: websecure
hostnames: hostnames:
- "traefik.noxxos.nl" - "traefik.noxxos.nl"
rules: rules:

View File

@ -1,20 +0,0 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: argocd-server
namespace: argocd
spec:
parentRefs:
- name: traefik-gateway
namespace: traefik
sectionName: websecure
hostnames:
- "argocd.noxxos.nl"
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: argocd-server
port: 80

View File

@ -19,8 +19,8 @@ spec:
namespace: argocd namespace: argocd
syncPolicy: syncPolicy:
automated: automated:
prune: false prune: true
selfHeal: false selfHeal: true
syncOptions: syncOptions:
- CreateNamespace=true - CreateNamespace=true
- PruneLast=true - PruneLast=true