From 3593207d99a102a3fb944710151886cdfc75d37c Mon Sep 17 00:00:00 2001 From: Jon Stelly <967068+jonstelly@users.noreply.github.com> Date: Wed, 3 Jun 2020 09:53:03 -0500 Subject: [PATCH] Add arch node selector for hybrid clusters Currently, all of the lens-metrics components are multi-arch except for kube-state-metrics. On a hybrid cluster this can be scheduled for arm, arm64 or other nodes so the pod will never come up. - kube-state-metrics image only supports amd64 - https://github.com/kubernetes/kube-state-metrics/issues/1037. There is a PR for this, but it hasn't been merged yet and seems to be held up. Alternatively we could switch to use a different image: https://hub.docker.com/r/carlosedp/kube-state-metrics/tags but just limiting the state metrics to amd64 is the easier option Signed-off-by: Jon Stelly <967068+jonstelly@users.noreply.github.com> --- src/features/metrics/14-kube-state-metrics-deployment.yml.hb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/features/metrics/14-kube-state-metrics-deployment.yml.hb b/src/features/metrics/14-kube-state-metrics-deployment.yml.hb index 575eb41e95..10d508db0b 100644 --- a/src/features/metrics/14-kube-state-metrics-deployment.yml.hb +++ b/src/features/metrics/14-kube-state-metrics-deployment.yml.hb @@ -28,6 +28,11 @@ spec: operator: In values: - linux + - matchExpressions: + - key: beta.kubernetes.io/arch + operator: In + values: + - amd64 serviceAccountName: kube-state-metrics containers: - name: kube-state-metrics