Add ArgoCD Helm chart and configuration files for deployment
This commit is contained in:
parent
8c8a56b9f6
commit
a6dd91a88c
7
apps/argocd/Chart.yaml
Normal file
7
apps/argocd/Chart.yaml
Normal 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
|
||||
41
apps/argocd/application.yaml
Normal file
41
apps/argocd/application.yaml
Normal 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
|
||||
20
apps/argocd/templates/httproute.yaml
Normal file
20
apps/argocd/templates/httproute.yaml
Normal 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
7
apps/argocd/values.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
argo-cd:
|
||||
global:
|
||||
domain: argocd.noxxos.nl
|
||||
|
||||
server:
|
||||
ingress:
|
||||
enabled: false
|
||||
Loading…
Reference in New Issue
Block a user