add monitor stack
This commit is contained in:
29
envs/dev/apps/monitoring.yaml
Normal file
29
envs/dev/apps/monitoring.yaml
Normal 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
|
||||
Reference in New Issue
Block a user