mirror of https://github.com/k3s-io/k3s
Merge pull request #1040 from brendandburns/hostname
Switch the hostname in a container to be the pod id.pull/6/head
commit
7487f9a951
|
@ -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)),
|
||||
|
|
Loading…
Reference in New Issue