mirror of https://github.com/kubernetes/kops.git
coreos/containeros: restart kops-configuration service after docker drop-in is loaded
This commit is contained in:
parent
fcd010044b
commit
89960aff67
|
@ -725,6 +725,11 @@ func (b *DockerBuilder) buildContainerOSConfigurationDropIn(c *fi.ModelBuilderCo
|
||||||
OnChangeExecute: [][]string{
|
OnChangeExecute: [][]string{
|
||||||
{"systemctl", "daemon-reload"},
|
{"systemctl", "daemon-reload"},
|
||||||
{"systemctl", "restart", "docker.service"},
|
{"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", "&"},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue