diff --git a/pkg/registry/pod/rest.go b/pkg/registry/pod/rest.go index 4b80d371ae..6057a1d692 100644 --- a/pkg/registry/pod/rest.go +++ b/pkg/registry/pod/rest.go @@ -51,6 +51,7 @@ func (podStrategy) NamespaceScoped() bool { func (podStrategy) ResetBeforeCreate(obj runtime.Object) { pod := obj.(*api.Pod) pod.Status = api.PodStatus{ + Host: pod.Spec.Host, Phase: api.PodPending, } }