mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-08 05:56:37 +00:00
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:
@@ -57,7 +57,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: configure-firewall
|
- name: configure-firewall
|
||||||
image: mcr.microsoft.com/windows/nanoserver:1809
|
image: mcr.microsoft.com/windows/powershell:lts-nanoserver-1809
|
||||||
command: ["powershell"]
|
command: ["powershell"]
|
||||||
args: ["New-NetFirewallRule", "-DisplayName", "'windows-exporter'", "-Direction", "inbound", "-Profile", "Any", "-Action", "Allow", "-LocalPort", "9182", "-Protocol", "TCP"]
|
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
|
## 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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user