Refactor ArgoCD HTTPRoute configuration and update sync policy for automated management
This commit is contained in:
parent
223929de77
commit
27aecf6e78
@ -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
|
|
||||||
@ -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
|
||||||
|
|||||||
@ -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:
|
||||||
|
|||||||
@ -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
|
|
||||||
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user