Skip to content

Commit 29ec02a

Browse files
authored
separate nodeSelector for metrics-agg (splunk#777)
1 parent 03d96c4 commit 29ec02a

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

helm-chart/splunk-connect-for-kubernetes/charts/splunk-kubernetes-metrics/templates/deploymentMetricsAggregator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ spec:
3838
{{- end }}
3939
spec:
4040
serviceAccountName: {{ template "splunk-kubernetes-metrics.serviceAccountName" . }}
41-
{{- with .Values.nodeSelector }}
41+
{{- with .Values.aggregatorNodeSelector }}
4242
nodeSelector:
4343
{{ toYaml . | indent 8 }}
4444
{{- end }}

helm-chart/splunk-connect-for-kubernetes/charts/splunk-kubernetes-metrics/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ tolerations:
191191
# blank by default.
192192
aggregatorTolerations: {}
193193

194+
# Defines aggregator's nodeSelector. This may need to be different to metrics's daemonset.
195+
aggregatorNodeSelector:
196+
beta.kubernetes.io/os: linux
197+
194198
# Defines priorityClassName to assign a priority class to metrics (daemonset) pods.
195199
priorityClassName:
196200

helm-chart/splunk-connect-for-kubernetes/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,6 +1063,10 @@ splunk-kubernetes-metrics:
10631063
nodeSelector:
10641064
beta.kubernetes.io/os: linux
10651065

1066+
# Defines which nodes should be selected to deploy the aggregator deployment
1067+
aggregatorNodeSelector:
1068+
beta.kubernetes.io/os: linux
1069+
10661070
# This default tolerations allow the daemonset to be deployed on master nodes,
10671071
# so that we can also collect metrics from those nodes.
10681072
tolerations:

0 commit comments

Comments
 (0)