Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

does hostPort not work on kube-aws/CoreOS? #91

Closed
rajivm opened this issue Nov 24, 2016 · 7 comments
Closed

does hostPort not work on kube-aws/CoreOS? #91

rajivm opened this issue Nov 24, 2016 · 7 comments

Comments

@rajivm
Copy link

rajivm commented Nov 24, 2016

I am unable to get it to docker expose the port on the host. See kubernetes/kubernetes#23920 (comment) also

@pieterlange
Copy link
Contributor

This is an issue in kubernetes. You can use nodePort as temporary workaround, which isn't ideal, but it's something..

@rajivm
Copy link
Author

rajivm commented Nov 24, 2016

@pieterlange Appreciate the quick response. Yeah not ideal because more proxying/hopping. Any idea why this only affects CoreOS?

@pieterlange
Copy link
Contributor

Why do you think it's just CoreOS?

If i remember correctly it's in the new CNI code and the CNI (in our case flannel) needs to implement it.

@camilb
Copy link
Contributor

camilb commented Nov 24, 2016

Had a problem with nginx ingress controller when using calico and solved using hostNetwork: true in deployment. Maybe it works in this case also.
Ex:

    spec:
      hostNetwork: true
      containers:
      - image: gcr.io/google_containers/nginx-ingress-controller:0.8.3
        name: nginx-ingress-lb

@pieterlange
Copy link
Contributor

This is indeed the most common usecase for using hostPort and is not affected by the pod not getting its own pod IP 👍 nice workaround @camilb!

@mumoshu mumoshu added the triage/support Indicates an issue that is a support question. label Nov 28, 2016
@mumoshu
Copy link
Contributor

mumoshu commented Nov 28, 2016

@rajivm Thanks for starting the discussion!
After reading the whole thread, I believe this is not a CoreOS/kube-aws issue but rather a upstream issue.

I'd like to decide how we handle this.
Should we just document this issue/restriction with companions like @pieterlange's comment about nodePort and @camilb 's comment about nginx-ingress-controller for now in our doc?

@mumoshu mumoshu added documentation open for pull request and removed need more info triage/support Indicates an issue that is a support question. labels Dec 10, 2016
@mumoshu
Copy link
Contributor

mumoshu commented Dec 15, 2016

I'm closing this as it is now documented in #162 🙇

@mumoshu mumoshu closed this as completed Dec 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants