Skip to content

Commit

Permalink
fix(argocd): do not apply ServiceMonitor on bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
khuedoan committed Jan 22, 2023
1 parent 349faa3 commit cd39632
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bootstrap/argocd/apply.sh
@@ -1,9 +1,15 @@
#!/bin/sh

VALUES="values.yaml"

kubectl get ingress argocd-server --namespace argocd \
|| VALUES="values-seed.yaml"

helm template \
--dependency-update \
--include-crds \
--namespace argocd \
--values "${VALUES}" \
argocd . \
| kubectl apply -n argocd -f -

Expand Down
12 changes: 12 additions & 0 deletions bootstrap/argocd/values-seed.yaml
@@ -0,0 +1,12 @@
argo-cd:
server:
metrics: &metrics
enabled: false
serviceMonitor:
enabled: false
controller:
metrics: *metrics
repoServer:
metrics: *metrics
redis:
metrics: *metrics

0 comments on commit cd39632

Please sign in to comment.