From cb0c14feeddd92cb99e9ca97af2a2baf60ca899a Mon Sep 17 00:00:00 2001 From: CarlosEDP Date: Tue, 5 Feb 2019 16:54:41 -0200 Subject: [PATCH] Tag arm_exporter to arm64 only nodes --- arm_exporter.jsonnet | 2 +- manifests/arm-exporter-daemonset.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arm_exporter.jsonnet b/arm_exporter.jsonnet index 47d3ac0..5eb02ce 100644 --- a/arm_exporter.jsonnet +++ b/arm_exporter.jsonnet @@ -36,7 +36,7 @@ local kp = (import 'kube-prometheus/kube-prometheus.libsonnet') + daemonset.mixin.metadata.withLabels(podLabels) + daemonset.mixin.spec.selector.withMatchLabels(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), serviceMonitor: { diff --git a/manifests/arm-exporter-daemonset.yaml b/manifests/arm-exporter-daemonset.yaml index de2cdf1..453048c 100644 --- a/manifests/arm-exporter-daemonset.yaml +++ b/manifests/arm-exporter-daemonset.yaml @@ -41,4 +41,4 @@ spec: cpu: 10m memory: 20Mi nodeSelector: - beta.kubernetes.io/os: linux + beta.kubernetes.io/arch: arm64