mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Flush cache to disk to persist setup status
This commit is contained in:
parent
a8e43038a4
commit
c84eb12357
@ -152,6 +152,9 @@ try {
|
|||||||
Configure-LoggingAgent
|
Configure-LoggingAgent
|
||||||
Restart-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
|
Start-WorkerServices
|
||||||
Log-Output 'Waiting 15 seconds for node to join cluster.'
|
Log-Output 'Waiting 15 seconds for node to join cluster.'
|
||||||
Start-Sleep 15
|
Start-Sleep 15
|
||||||
@ -162,6 +165,8 @@ try {
|
|||||||
Schedule-LogRotation -Pattern '.*\.log$' -Path ${env:LOGS_DIR} -RepetitionInterval $(New-Timespan -Hour 1) -Config $config
|
Schedule-LogRotation -Pattern '.*\.log$' -Path ${env:LOGS_DIR} -RepetitionInterval $(New-Timespan -Hour 1) -Config $config
|
||||||
|
|
||||||
Pull-InfraContainer
|
Pull-InfraContainer
|
||||||
|
# Flush cache to disk to persist the setup status
|
||||||
|
Write-Volumecache C -PassThru
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
Write-Host 'Exception caught in script:'
|
Write-Host 'Exception caught in script:'
|
||||||
|
Loading…
Reference in New Issue
Block a user