Move touching kubeapiserver log file to code

This commit is contained in:
Justin Santa Barbara 2017-03-22 00:02:46 -04:00
parent e28c7beb2a
commit 8287a75fec
3 changed files with 12 additions and 3 deletions

View File

@ -61,6 +61,18 @@ func (b *KubeAPIServerBuilder) Build(c *fi.ModelBuilderContext) error {
c.AddTask(t)
}
// Touch log file, so that docker doesn't create a directory instead
{
t := &nodetasks.File{
Path: "/var/log/kube-apiserver.log",
Contents: fi.NewStringResource(""),
Type: nodetasks.FileType_File,
Mode: s("0400"),
IfNotExists: true,
}
c.AddTask(t)
}
return nil
}