Skip to content
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

Don't configure /etc/hosts by default. #22

Merged
merged 1 commit into from
Apr 18, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions policy_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,12 @@ def configure_etc_hosts():
_log.addHandler(stdout_hdlr)
_log.setLevel(log_level)

# Configure /etc/hosts with Kubernetes API.
_log.info("Configuring /etc/hosts")
configure_etc_hosts()
if os.environ.get("CONFIGURE_ETC_HOSTS", "false").lower() == "true":
# Configure /etc/hosts with Kubernetes API.
# Don't do this by default, since it is recommended to run
# this pod using host networking on the master.
_log.info("Configuring /etc/hosts")
configure_etc_hosts()

_log.info("Beginning execution")
PolicyAgent().run()