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

Modify nginx port to avoid collision with api server #4322

Merged
merged 1 commit into from
Feb 18, 2015

Conversation

bprashanth
Copy link
Contributor

Spinning up a local cluster with the basic pod manifest in examples/pod.json causes a port collision, since the api server also runs on 8080. This PR changes the port to 8081, and updates the documentation appropriately.

@@ -11,7 +11,7 @@
"image": "dockerfile/nginx",
"ports": [{
"containerPort": 80,
"hostPort": 8080
"hostPort": 8081
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to do this without using a host port? Services have generally replaced the need for host ports, and using host ports mean that the scheduler can't put two instances of the same pod onto a single node.

@roberthbailey roberthbailey self-assigned this Feb 11, 2015
@bprashanth
Copy link
Contributor Author

Herp, I completely missed your question. Yep, I can add a services example in another PR. However I'd still like a simple pod.json, to use against both localhost and gce, and the services solution won't help with the former.

@bprashanth bprashanth assigned yujuhong and unassigned roberthbailey Feb 18, 2015
@bprashanth
Copy link
Contributor Author

@roberthbailey fyi, assigning to primary

@yujuhong
Copy link
Contributor

LGTM.

yujuhong added a commit that referenced this pull request Feb 18, 2015
Modify nginx port to avoid collision with api server
@yujuhong yujuhong merged commit 418f336 into kubernetes:master Feb 18, 2015
@bprashanth bprashanth deleted the nginx_port_collision branch October 26, 2015 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants