Skip to content

Commit eff58cc

Browse files
authored
Merge pull request kubernetes#92034 from YangLu1031/master
Flush cache to disk to persist configuration status
2 parents c5ef7ee + c84eb12 commit eff58cc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cluster/gce/windows/configure.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ try {
152152
Configure-LoggingAgent
153153
Restart-LoggingAgent
154154
}
155+
# Flush cache to disk before starting kubelet & kube-proxy services
156+
# to make metadata server route and stackdriver service more persistent.
157+
Write-Volumecache C -PassThru
155158
Start-WorkerServices
156159
Log-Output 'Waiting 15 seconds for node to join cluster.'
157160
Start-Sleep 15
@@ -162,6 +165,8 @@ try {
162165
Schedule-LogRotation -Pattern '.*\.log$' -Path ${env:LOGS_DIR} -RepetitionInterval $(New-Timespan -Hour 1) -Config $config
163166

164167
Pull-InfraContainer
168+
# Flush cache to disk to persist the setup status
169+
Write-Volumecache C -PassThru
165170
}
166171
catch {
167172
Write-Host 'Exception caught in script:'

0 commit comments

Comments
 (0)