Skip to content

Commit

Permalink
Merge pull request #77 from fedepaol/helmfixes
Browse files Browse the repository at this point in the history
Charts: disable service monitors by default
  • Loading branch information
fedepaol authored Nov 28, 2023
2 parents 4ccc8ad + d2ba9c1 commit 99b2ff4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 32 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ deploy-helm: helm deploy-cluster deploy-prometheus
$(KUBECTL) create ns ${NAMESPACE} || true
$(KUBECTL) label ns ${NAMESPACE} pod-security.kubernetes.io/enforce=privileged
$(HELM) install frrk8s charts/frr-k8s/ --set frrk8s.image.tag=${IMG_TAG} --set frrk8s.logLevel=debug --set prometheus.rbacPrometheus=true \
--set prometheus.serviceAccount=prometheus-k8s --set prometheus.namespace=monitoring --namespace ${NAMESPACE}
--set prometheus.serviceAccount=prometheus-k8s --set prometheus.namespace=monitoring --set prometheus.serviceMonitor.enabled=true --namespace ${NAMESPACE}
sleep 2s # wait for daemonset to be created
$(KUBECTL) -n frr-k8s-system wait --for=condition=Ready --all pods --timeout 300s

Expand Down
2 changes: 1 addition & 1 deletion charts/frr-k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Kubernetes: `>= 1.19.0-0`
| prometheus.serviceAccount | string | `""` | |
| prometheus.serviceMonitor.additionalLabels | object | `{}` | |
| prometheus.serviceMonitor.annotations | object | `{}` | |
| prometheus.serviceMonitor.enabled | bool | `true` | |
| prometheus.serviceMonitor.enabled | bool | `false` | |
| prometheus.serviceMonitor.interval | string | `nil` | |
| prometheus.serviceMonitor.jobLabel | string | `"app.kubernetes.io/name"` | |
| prometheus.serviceMonitor.metricRelabelings | list | `[]` | |
Expand Down
31 changes: 1 addition & 30 deletions charts/frr-k8s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ prometheus:
# Prometheus Operator ServiceMonitors.
serviceMonitor:
# enable support for Prometheus Operator
enabled: true
enabled: false

additionalLabels: {}
# optional additional annotations for the controller serviceMonitor
Expand Down Expand Up @@ -86,35 +86,6 @@ prometheus:
# replacement: $1
# action: replace

# # Prometheus Operator alertmanager alerts
# prometheusRule:
# # enable alertmanager alerts
# enabled: false
#
# # optional additionnal labels for prometheusRules
# additionalLabels: {}
#
# # optional annotations for prometheusRules
# annotations: {}
#
#
# addressPoolUsage:
# enabled: true
# thresholds:
# - percent: 75
# labels:
# severity: warning
# - percent: 85
# labels:
# severity: warning
# - percent: 95
# labels:
# severity: alert
#
#
# extraAlerts: []


# controller contains configuration specific to the FRRK8s controller
# daemonset.
frrk8s:
Expand Down

0 comments on commit 99b2ff4

Please sign in to comment.