Merge pull request #92034 from YangLu1031/master

Flush cache to disk to persist configuration status
This commit is contained in:
Kubernetes Prow Robot 2020-06-12 02:24:25 -07:00 committed by GitHub
commit eff58cc003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,6 +152,9 @@ try {
Configure-LoggingAgent
Restart-LoggingAgent
}
# Flush cache to disk before starting kubelet & kube-proxy services
# to make metadata server route and stackdriver service more persistent.
Write-Volumecache C -PassThru
Start-WorkerServices
Log-Output 'Waiting 15 seconds for node to join cluster.'
Start-Sleep 15
@ -162,6 +165,8 @@ try {
Schedule-LogRotation -Pattern '.*\.log$' -Path ${env:LOGS_DIR} -RepetitionInterval $(New-Timespan -Hour 1) -Config $config
Pull-InfraContainer
# Flush cache to disk to persist the setup status
Write-Volumecache C -PassThru
}
catch {
Write-Host 'Exception caught in script:'