From 2a14b95595fd6767bdeb03ca7460b15a3793d503 Mon Sep 17 00:00:00 2001 From: henrik-m <henrik-m@users.noreply.github.com> Date: Tue, 1 Oct 2024 10:56:38 +0200 Subject: [PATCH] Multi arch win exporter (#2450) * Make windows-exporter daemonset compatible with multi-arch windows clusters * Fix path to powershell image --- .../addons/windows-hostprocess.libsonnet | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/jsonnet/kube-prometheus/addons/windows-hostprocess.libsonnet b/jsonnet/kube-prometheus/addons/windows-hostprocess.libsonnet index d4929d95..b042d364 100644 --- a/jsonnet/kube-prometheus/addons/windows-hostprocess.libsonnet +++ b/jsonnet/kube-prometheus/addons/windows-hostprocess.libsonnet @@ -67,7 +67,7 @@ local windowsExporter = function(params) { initContainers: [ { name: 'configure-firewall', - image: 'mcr.microsoft.com/windows/nanoserver:1809', + image: 'mcr.microsoft.com/powershell:nanoserver-lts', resources: we._config.resources, command: [ 'powershell', @@ -93,7 +93,7 @@ local windowsExporter = function(params) { { args: [ '--config.file=%CONTAINER_SANDBOX_MOUNT_POINT%/config.yml', - '--collector.textfile.directory=%CONTAINER_SANDBOX_MOUNT_POINT%', + '--collector.textfile.directories=%CONTAINER_SANDBOX_MOUNT_POINT%', ], name: we._config.name, image: we._config.image + ':' + we._config.version, @@ -118,6 +118,14 @@ local windowsExporter = function(params) { nodeSelector: { 'kubernetes.io/os': 'windows', }, + tolerations: [ + { + key: 'os', + operator: 'Equal', + value: 'windows', + effect: 'NoSchedule', + }, + ], volumes: [ { name: 'windows-exporter-config', -- GitLab