add monitor stack

This commit is contained in:
2026-06-19 17:33:56 +07:00
parent 980ffd3891
commit 8af179f7a6
2 changed files with 122 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: monitoring-dev
namespace: argocd
spec:
project: default
sources:
# Chart từ Helm repo prometheus-community (không cần đưa vào Gitea)
- repoURL: https://prometheus-community.github.io/helm-charts
chart: kube-prometheus-stack
targetRevision: 66.2.1
helm:
valueFiles:
- $values/envs/dev/values/monitoring.yaml
# Repo Gitea chỉ để lấy values
- repoURL: https://git.renolation.com/renolation/argo-k8s.git
targetRevision: main
ref: values
destination:
server: https://kubernetes.default.svc
namespace: monitoring
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true # CRD kube-prometheus-stack rất lớn, cần server-side