mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-03-12 21:46:35 +00:00
Merge pull request #969 from breed808/init_powershell
Use `powershell` image for firewall init container
This commit is contained in:
@@ -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"]
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user