File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,9 +25,10 @@ to be installed from the source code.
2525| ` serviceMonitor.relabelings ` | Allow to add extra labels to metrics | Add node metrics |
2626
2727#### Other parameters
28- | Name | Description | Value |
29- | ------------------------------------------ | ----------------------------------------------------------------------------| ------------------------- |
30- | ` tolerations ` | Tolerations for pod assignment. Evaluated as a template. | ` - operator: "Exists" ` |
28+ | Name | Description | Value |
29+ | ------------------------------------------ | ------------------------------------------------------------------------------------------------| ------------------------- |
30+ | ` affinity ` | Pod scheduling preference. Can be used for instance when some node does not support scaphandre. | ` {} ` |
31+ | ` tolerations ` | Tolerations for pod assignment. Evaluated as a template. | ` - operator: "Exists" ` |
3132
3233## Install Prometheus
3334
Original file line number Diff line number Diff line change 5656 runAsUser : {{ .Values.userID }}
5757 runAsGroup : {{ .Values.userGroup }}
5858 serviceAccountName : {{ template "scaphandre.name" . }}
59+ affinity :
60+ {{- with .Values.affinity }}
61+ {{- toYaml . | nindent 8 }}
62+ {{- end }}
5963 {{- with .Values.tolerations }}
6064 tolerations :
6165 {{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change 2222 interval : {{ .Values.serviceMonitor.interval }}
2323 {{- end }}
2424 scrapeTimeout : {{ .Values.serviceMonitor.scrapeTimeout }}
25+ {{- if .Values.serviceMonitor.relabelings }}
26+ relabelings :
27+ {{ toYaml .Values.serviceMonitor.relabelings | nindent 8 }}
28+ {{- end }}
2529 namespaceSelector :
2630 matchNames :
2731 - {{ .Release.Namespace }}
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ serviceMonitor:
4141 - __meta_kubernetes_pod_node_name
4242 targetLabel : node
4343
44+ affinity : {}
45+
4446tolerations :
4547 # Tolerate all taints for observability
4648 - operator : " Exists"
You can’t perform that action at this time.
0 commit comments