From f471cc0e4e904ad24967dd9fa8b2cfd02dbaeab9 Mon Sep 17 00:00:00 2001 From: Ben Reedy Date: Thu, 7 Apr 2022 08:06:06 +1000 Subject: [PATCH] Use `powershell` image for firewall init container Previous `nanoserver` image did not have Powershell installed, causing the init container to fail. Signed-off-by: Ben Reedy --- kubernetes/kubernetes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubernetes/kubernetes.md b/kubernetes/kubernetes.md index f0020e8d..7a2e5f59 100644 --- a/kubernetes/kubernetes.md +++ b/kubernetes/kubernetes.md @@ -57,7 +57,7 @@ spec: spec: initContainers: - name: configure-firewall - image: mcr.microsoft.com/windows/nanoserver:1809 + image: mcr.microsoft.com/windows/powershell:lts-nanoserver-1809 command: ["powershell"] args: ["New-NetFirewallRule", "-DisplayName", "'windows-exporter'", "-Direction", "inbound", "-Profile", "Any", "-Action", "Allow", "-LocalPort", "9182", "-Protocol", "TCP"] ``` @@ -89,4 +89,4 @@ sum by (mode) (irate(windows_cpu_time_total{instance="10.1.0.5:9182"}[5m])) ## Configuring TLS -It is possible to configure TLS of the solution using `--web.config.file`. Read more at https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md \ No newline at end of file +It is possible to configure TLS of the solution using `--web.config.file`. Read more at https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md