Tag arm_exporter to arm64 only nodes

This commit is contained in:
CarlosEDP 2019-02-05 16:54:41 -02:00
parent 645ac5333f
commit cb0c14feed
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ local kp = (import 'kube-prometheus/kube-prometheus.libsonnet') +
daemonset.mixin.metadata.withLabels(podLabels) + daemonset.mixin.metadata.withLabels(podLabels) +
daemonset.mixin.spec.selector.withMatchLabels(podLabels) + daemonset.mixin.spec.selector.withMatchLabels(podLabels) +
daemonset.mixin.spec.template.metadata.withLabels(podLabels) + daemonset.mixin.spec.template.metadata.withLabels(podLabels) +
daemonset.mixin.spec.template.spec.withNodeSelector({ 'beta.kubernetes.io/os': 'linux' }) + daemonset.mixin.spec.template.spec.withNodeSelector({ 'beta.kubernetes.io/arch': 'arm64' }) +
daemonset.mixin.spec.template.spec.withContainers(c), daemonset.mixin.spec.template.spec.withContainers(c),
serviceMonitor: serviceMonitor:
{ {

View File

@ -41,4 +41,4 @@ spec:
cpu: 10m cpu: 10m
memory: 20Mi memory: 20Mi
nodeSelector: nodeSelector:
beta.kubernetes.io/os: linux beta.kubernetes.io/arch: arm64