mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +00:00
Merge pull request #1040 from brendandburns/hostname
Switch the hostname in a container to be the pod id.
This commit is contained in:
commit
7487f9a951
@ -303,7 +303,7 @@ func (kl *Kubelet) runContainer(pod *Pod, container *api.Container, podVolumes v
|
|||||||
Cmd: container.Command,
|
Cmd: container.Command,
|
||||||
Env: envVariables,
|
Env: envVariables,
|
||||||
ExposedPorts: exposedPorts,
|
ExposedPorts: exposedPorts,
|
||||||
Hostname: container.Name,
|
Hostname: pod.Name,
|
||||||
Image: container.Image,
|
Image: container.Image,
|
||||||
Memory: int64(container.Memory),
|
Memory: int64(container.Memory),
|
||||||
CpuShares: int64(milliCPUToShares(container.CPU)),
|
CpuShares: int64(milliCPUToShares(container.CPU)),
|
||||||
|
Loading…
Reference in New Issue
Block a user