Skip to content
Snippets Groups Projects
Unverified Commit 2a14b955 authored by henrik-m's avatar henrik-m Committed by GitHub
Browse files

Multi arch win exporter (#2450)

* Make windows-exporter daemonset compatible with multi-arch windows clusters

* Fix path to powershell image
parent 87a757d8
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ local windowsExporter = function(params) { ...@@ -67,7 +67,7 @@ local windowsExporter = function(params) {
initContainers: [ initContainers: [
{ {
name: 'configure-firewall', name: 'configure-firewall',
image: 'mcr.microsoft.com/windows/nanoserver:1809', image: 'mcr.microsoft.com/powershell:nanoserver-lts',
resources: we._config.resources, resources: we._config.resources,
command: [ command: [
'powershell', 'powershell',
...@@ -93,7 +93,7 @@ local windowsExporter = function(params) { ...@@ -93,7 +93,7 @@ local windowsExporter = function(params) {
{ {
args: [ args: [
'--config.file=%CONTAINER_SANDBOX_MOUNT_POINT%/config.yml', '--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, name: we._config.name,
image: we._config.image + ':' + we._config.version, image: we._config.image + ':' + we._config.version,
...@@ -118,6 +118,14 @@ local windowsExporter = function(params) { ...@@ -118,6 +118,14 @@ local windowsExporter = function(params) {
nodeSelector: { nodeSelector: {
'kubernetes.io/os': 'windows', 'kubernetes.io/os': 'windows',
}, },
tolerations: [
{
key: 'os',
operator: 'Equal',
value: 'windows',
effect: 'NoSchedule',
},
],
volumes: [ volumes: [
{ {
name: 'windows-exporter-config', name: 'windows-exporter-config',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment