Add ArgoCD Helm chart and configuration files for deployment

This commit is contained in:
Marco van Zijl 2025-11-08 14:55:57 +01:00
parent 8c8a56b9f6
commit a6dd91a88c
4 changed files with 75 additions and 0 deletions

7
apps/argocd/Chart.yaml Normal file
View File

@ -0,0 +1,7 @@
apiVersion: v2
name: argocd
version: 1.0.0
dependencies:
- name: argo-cd
version: 9.1.0
repository: https://argoproj.github.io/argo-helm

View File

@ -0,0 +1,41 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: argocd
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "-1" # Sync before other apps
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
source:
repoURL: https://git.mvzijl.nl/marco/veda.git
targetRevision: applicationset-rewrite
path: apps/argocd
helm:
releaseName: argocd
valueFiles:
- values.yaml
destination:
server: https://kubernetes.default.svc
namespace: argocd
syncPolicy:
automated:
prune: false # Be careful with pruning ArgoCD itself
selfHeal: true # Auto-fix configuration drift
syncOptions:
- CreateNamespace=true
- PruneLast=true
- PrunePropagationPolicy=foreground
ignoreDifferences:
# Ignore certain fields that change frequently
- group: apps
kind: Deployment
jsonPointers:
- /spec/replicas # If using HPA
- group: ""
kind: Secret
name: argocd-initial-admin-secret
jsonPointers:
- /data # Don't sync the initial password secret

View File

@ -0,0 +1,20 @@
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

7
apps/argocd/values.yaml Normal file
View File

@ -0,0 +1,7 @@
argo-cd:
global:
domain: argocd.noxxos.nl
server:
ingress:
enabled: false