Skip to content

Commit

Permalink
make it conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasochem committed Feb 10, 2022
1 parent ab8cc66 commit e5f0891
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/polkadot/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.deploy_service_monitor }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand All @@ -13,3 +14,4 @@ spec:
selector:
matchLabels:
app: polkadot-node
{{- end }}
5 changes: 5 additions & 0 deletions charts/polkadot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ node_selector: {}
# It is not possible to resize the volume by editing this value.
# Instead, you must resize the pvc directly.
vol_size: 50

# deploy service monitor?
# only set to true if you have the prometheus operator installed.
# Otherwise, helm installation will fail
deploy_service_monitor: false

0 comments on commit e5f0891

Please sign in to comment.