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 <breed808@breed808.com>
This commit is contained in:
Ben Reedy
2022-04-07 08:06:06 +10:00
parent 3c4ae95a8d
commit f471cc0e4e

View File

@@ -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"]
```