coreos/containeros: restart kops-configuration service after docker drop-in is loaded

This commit is contained in:
andrewsykim 2018-04-03 12:47:19 -04:00
parent fcd010044b
commit 89960aff67
1 changed files with 5 additions and 0 deletions

View File

@ -725,6 +725,11 @@ func (b *DockerBuilder) buildContainerOSConfigurationDropIn(c *fi.ModelBuilderCo
OnChangeExecute: [][]string{
{"systemctl", "daemon-reload"},
{"systemctl", "restart", "docker.service"},
// We need to restart kops-configuration service since nodeup needs to load images
// into docker with the new overlay storage. Restart is on the background because
// kops-configuration is of type 'one-shot' so the restart command will wait for
// nodeup to finish executing
{"systemctl", "restart", "kops-configuration.service", "&"},
},
})