rancher-charts/packages/rancher-monitoring/rancher-windows-exporter/charts/scripts/proxy-entry.ps1

12 lines
209 B
PowerShell

# default
$listenPort = "9796"
if ($env:LISTEN_PORT) {
$listenPort = $env:LISTEN_PORT
}
# format "UDP:4789 TCP:8080"
$winsPublish = $('TCP:{0}' -f $listenPort)
wins.exe cli proxy --publish $winsPublish