Merge pull request #41 from geerlingguy/40-tolerations-arm-daemonset

Fixes #40: Add toleration to armexporter-daemonset so it deploys to all nodes.
This commit is contained in:
Carlos Eduardo 2020-05-24 10:28:55 -03:00 committed by GitHub
commit 760eddd0c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,7 @@ local utils = import 'utils.libsonnet';
daemonset.mixin.spec.selector.withMatchLabels(podLabels) +
daemonset.mixin.spec.template.metadata.withLabels(podLabels) +
daemonset.mixin.spec.template.spec.withNodeSelector({ 'beta.kubernetes.io/arch': 'arm64' }) +
daemonset.mixin.spec.template.spec.withTolerations([{'operator': 'Exists'}]) +
daemonset.mixin.spec.template.spec.withServiceAccountName('arm-exporter') +
daemonset.mixin.spec.template.spec.withContainers(c),