fix: Update init container in windows exporter so that it works on both WS2019 and WS2022

Signed-off-by: Kaveesh Dubey <kadubey@microsoft.com>
This commit is contained in:
Kaveesh Dubey
2023-07-12 15:07:51 -07:00
parent 10e42d3583
commit f96c6654be
2 changed files with 1 additions and 62 deletions

View File

@@ -21,7 +21,7 @@ spec:
hostNetwork: true
initContainers:
- name: configure-firewall
image: mcr.microsoft.com/windows/nanoserver:1809
image: mcr.microsoft.com/powershell:lts-nanoserver-1809
command: ["powershell"]
args: ["New-NetFirewallRule", "-DisplayName", "'windows-exporter'", "-Direction", "inbound", "-Profile", "Any", "-Action", "Allow", "-LocalPort", "9182", "-Protocol", "TCP"]
containers: