Use EnsureTask for create static pod directory

This commit is contained in:
Alex Williams 2019-03-14 12:22:43 +00:00
parent c5d6c37282
commit c928b7e6c5
No known key found for this signature in database
GPG Key ID: 606C899A2D1261C1
2 changed files with 5 additions and 1 deletions

View File

@ -50,6 +50,10 @@ On nodes:
* kube-proxy (which configures iptables so that the k8s-network will work) * kube-proxy (which configures iptables so that the k8s-network will work)
It is possible to add custom static pods by using `fileAssets` in the
cluster spec. This might be useful for any custom bootstraping that
doesn't fit into `additionalUserData` or `hooks`.
## kubelet start ## kubelet start
Kubelet starts up, starts (and restarts) all the containers in /etc/kubernetes/manifests. Kubelet starts up, starts (and restarts) all the containers in /etc/kubernetes/manifests.

View File

@ -95,7 +95,7 @@ func (b *KubeletBuilder) Build(c *fi.ModelBuilderContext) error {
if err != nil { if err != nil {
return err return err
} }
c.AddTask(t) c.EnsureTask(t)
} }
} }
{ {