mirror of https://github.com/kubernetes/kops.git
Move touching kubeapiserver log file to code
This commit is contained in:
parent
e28c7beb2a
commit
8287a75fec
|
|
@ -61,6 +61,18 @@ func (b *KubeAPIServerBuilder) Build(c *fi.ModelBuilderContext) error {
|
||||||
c.AddTask(t)
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"ifNotExists": true
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue