Update add-entries-to-pod-etc-hosts-with-host-aliases.md (#5146)
modify the first letter of sentence to be in uppercasepull/5066/merge
parent
07bb1d2aec
commit
c6450cb087
docs/concepts/services-networking
|
@ -67,6 +67,6 @@ As of 1.7, Pods with hostNetwork enabled will not be able to use this feature. T
|
|||
|
||||
## Why Does Kubelet Manage the Hosts File?
|
||||
|
||||
kubelet [manages](https://github.com/kubernetes/kubernetes/issues/14633) the hosts file for each container of the Pod to prevent Docker from [modifying](https://github.com/moby/moby/issues/17190) the file after the containers have already been started.
|
||||
Kubelet [manages](https://github.com/kubernetes/kubernetes/issues/14633) the hosts file for each container of the Pod to prevent Docker from [modifying](https://github.com/moby/moby/issues/17190) the file after the containers have already been started.
|
||||
|
||||
Because of the managed-nature of the file, any user-written content will be overwritten whenever the hosts file is remounted by Kubelet in the event of a container restart or a Pod reschedule. Thus, it is not suggested to modify the contents of the file.
|
||||
|
|
Loading…
Reference in New Issue