Merge "Running agents on all nodes."

This commit is contained in:
Zuul 2018-08-22 15:51:13 +00:00 committed by Gerrit Code Review
commit b1fdcfa497
4 changed files with 20 additions and 0 deletions

View File

@ -91,8 +91,16 @@ spec:
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
spec:
serviceAccountName: {{ $serviceAccountName }}
{{ if .Values.labels.fluentbit.tolerations }}
tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
- key: node-role.kubernetes.io/node
operator: Exists
{{ else }}
nodeSelector:
{{ .Values.labels.fluentbit.node_selector_key }}: {{ .Values.labels.fluentbit.node_selector_value | quote }}
{{ end }}
hostNetwork: true
hostPID: true
dnsPolicy: ClusterFirstWithHostNet

View File

@ -23,8 +23,10 @@ labels:
node_selector_key: openstack-control-plane
node_selector_value: enabled
fluentbit:
#(NOTE:seungkyua): when tolerations is true, nodeSelector will be disabled.
node_selector_key: openstack-control-plane
node_selector_value: enabled
tolerations: false
prometheus_fluentd_exporter:
node_selector_key: openstack-control-plane
node_selector_value: enabled

View File

@ -52,8 +52,16 @@ spec:
namespace: {{ .Values.endpoints.node_metrics.namespace }}
spec:
serviceAccountName: {{ $serviceAccountName }}
{{ if .Values.labels.node_exporter.tolerations }}
tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
- key: node-role.kubernetes.io/node
operator: Exists
{{ else }}
nodeSelector:
{{ .Values.labels.node_exporter.node_selector_key }}: {{ .Values.labels.node_exporter.node_selector_value | quote }}
{{ end }}
hostNetwork: true
hostPID: true
initContainers:

View File

@ -29,9 +29,11 @@ images:
- image_repo_sync
labels:
#(NOTE:seungkyua): when tolerations is true, nodeSelector will be disabled.
node_exporter:
node_selector_key: openstack-control-plane
node_selector_value: enabled
tolerations: false
job:
node_selector_key: openstack-control-plane
node_selector_value: enabled