File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,9 @@ try {
152
152
Configure- LoggingAgent
153
153
Restart-LoggingAgent
154
154
}
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
155
158
Start-WorkerServices
156
159
Log- Output ' Waiting 15 seconds for node to join cluster.'
157
160
Start-Sleep 15
@@ -162,6 +165,8 @@ try {
162
165
Schedule- LogRotation - Pattern ' .*\.log$' - Path ${env: LOGS_DIR} - RepetitionInterval $ (New-Timespan - Hour 1 ) - Config $config
163
166
164
167
Pull- InfraContainer
168
+ # Flush cache to disk to persist the setup status
169
+ Write-Volumecache C - PassThru
165
170
}
166
171
catch {
167
172
Write-Host ' Exception caught in script:'
You can’t perform that action at this time.
0 commit comments