Switch the hostname in a container to be the pod id.

This commit is contained in:
Brendan Burns 2014-08-26 11:13:53 -07:00
parent 183ea25016
commit 4f1fa939f7

View File

@ -303,7 +303,7 @@ func (kl *Kubelet) runContainer(pod *Pod, container *api.Container, podVolumes v
Cmd: container.Command,
Env: envVariables,
ExposedPorts: exposedPorts,
Hostname: container.Name,
Hostname: pod.Name,
Image: container.Image,
Memory: int64(container.Memory),
CpuShares: int64(milliCPUToShares(container.CPU)),