Skip to content

Commit

Permalink
Make windows-exporter daemonset compatible with multi-arch windows cl…
Browse files Browse the repository at this point in the history
…usters
  • Loading branch information
henrik-m committed Jun 27, 2024
1 parent b5b59bc commit c7fe300
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions jsonnet/kube-prometheus/addons/windows-hostprocess.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ local windowsExporter = function(params) {
initContainers: [
{
name: 'configure-firewall',
image: 'mcr.microsoft.com/windows/nanoserver:1809',
image: 'mcr.microsoft.com/windows/powershell:nanoserver-lts',
resources: we._config.resources,
command: [
'powershell',
Expand All @@ -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,
Expand All @@ -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',
Expand Down

0 comments on commit c7fe300

Please sign in to comment.