-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
No way to control /etc/hosts in podman play kube #9500
Comments
So should the infra container default to --nohost |
@haircommander WDYT? |
infra container should have |
I see a Can you guys think of a work around for the time being? |
Since we have no good way to enable this on the server side, we will just allow it to be set on the client side. This should solve almost all cases. Partially fixes: containers#9500 Signed-off-by: Daniel J Walsh <[email protected]>
Okay so that commit seems like it fixed the Not sure if I agree this should be closed yet - seems like we fixed an accessory problem, but not the root cause. |
Concur, reopening |
A friendly reminder that this issue had no activity for 30 days. |
@gcs278 Just curious how are you planning to populate this with relevant entries? Are you planning to bake |
This option will setup the containers to not modify their /etc/hosts file and just use the one from the image. Fixes: containers#9500 Signed-off-by: Daniel J Walsh <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
podman play kube does not have YAML or runtime options to set
--no-hosts
(likepodman pod create
). Therefore, it always the same /etc/hosts as the host, even if you have isolated (non-host) networking. Kubernetes does not shared the /etc/hosts file by default.This is a problem for me since I need to isolate the /etc/hosts file and have no way to control it.
Steps to reproduce the issue:
Describe the results you received:
POD Containers always has /etc/hosts from the host
Describe the results you expected:
Ability to control whether /etc/hosts is the same as the host's /etc/hosts
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: