-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Rancher host IP address #2101
Rancher host IP address #2101
Conversation
Thanks for your contribution 👍 Could you change the base branch of this PR from Is there an already open issue about this problem? |
Sure thing @ldez. No. Should I make an issue for it? |
No need to open a new issue. It's not related to #1498 ? |
Oh right. I forgot about that. That's the one! :) |
Could you rebase your PR on the git rebase upstream/v1.4 with: git remote -v
origin [email protected]:matq007/traefik.git (fetch)
origin [email protected]:matq007/traefik.git (push)
upstream [email protected]:containous/traefik.git (fetch)
upstream [email protected]:containous/traefik.git (push) |
de195e8
to
11db033
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matq007 Many thanks for your PR.
I just have one suggestion.
provider/rancher/api.go
Outdated
rancher "github.com/rancher/go-rancher/client" | ||
) | ||
|
||
const labelRancheStackServiceName = "io.rancher.stack_service.name" | ||
const hostNetwork = "host" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use a const
block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing, on it right now :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please rebase it again to 1.4 branch?
b3ce213
to
c506e2e
Compare
@matq007 please do: git checkout master
git branch -D fix-rancher-host
git checkout origin fix-rancher-host |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @matq007 ,
thanks for your contribution. Tested it on my rancher dev cluster and it's working good, so LGTM 👼
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👏 🐮
c506e2e
to
4570eea
Compare
Description
Until now traefik was setting up
PrimaryIpAddress
which is only set for managed network. When host network is chosen, traefik has to setup the IP address of the host machine where the container is running. As shown on the picture belowghot-1
is on host network andghot
is on managed network.Fixes #1498