Merge pull request #95617 from barney-s/fluentbit_win_fix

Fix windows node startup failures for fluentbit installation
This commit is contained in:
Kubernetes Prow Robot 2020-10-16 02:33:25 -07:00 committed by GitHub
commit d42d15847e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1627,16 +1627,17 @@ function DownloadAndInstall-LoggingAgents {
Log-Output 'Extracting Logging agent'
Expand-Archive td.zip
mv .\td\td-agent-bit-${LOGGINGAGENT_VERSION}-win64\ $LOGGINGAGENT_ROOT
cd C:\
Remove-Item -Force -Recurse $install_dir
}
# Download Logging exporter if needed
if (ShouldWrite-File $LOGGINGEXPORTER_ROOT\flb-exporter.exe) {
$url = ("https://storage.googleapis.com/gke-release/winnode/fluentbit-exporter/${LOGGINGEXPORTER_VERSION}/flb-exporter-${LOGGINGEXPORTER_VERSION}.exe")
Log-Output 'Downloading logging exporter'
New-Item $LOGGINGEXPORTER_ROOT -ItemType 'directory' -Force | Out-Null
MustDownload-File `
-OutFile $LOGGINGEXPORTER_ROOT\flb-exporter.exe `
-URLs 'https://storage.googleapis.com/gke-release/winnode/fluentbit-exporter/${LOGGINGEXPORTER_VERSION}/flb-exporter-${LOGGINGEXPORTER_VERSION}.exe'
-OutFile $LOGGINGEXPORTER_ROOT\flb-exporter.exe -URLs $url
}
}