New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Support adding HostAliases from ConfigMap #62579
Comments
/sig node |
Can’t you mount a configmap at /etc/hosts with a subpath? That’s more in line with the customization to control this that I would expect. |
/etc/hosts is created by kubernetes runtime. It seems like mounting ConfigMap at /etc/hosts is not a safe way. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What is the final solution for it? |
Is this a BUG REPORT or FEATURE REQUEST?:
/kind feature
What happened:
According to the following kubernetes document, the host entries can be added to Pod /etc/hosts with HostAliases.
https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
With ConfigMap, the configuration artifacts can be decoupled from image content. But the HostAliases can not be set by ConfigMap. It makes the custom host entries can be only set in the image content.
What you expected to happen:
Add new field(e.g. hostAliasesFrom) in PodSpec and the custom host entries can be added by the Pod's .spec.hostAliasesFrom which is a reference of a ConfigMap key.
The text was updated successfully, but these errors were encountered: