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

Fix k8s watch #573

Merged
merged 2 commits into from
Aug 16, 2016
Merged

Fix k8s watch #573

merged 2 commits into from
Aug 16, 2016

Conversation

errm
Copy link
Contributor

@errm errm commented Jul 31, 2016

It was mentioned in the support slack that if the pods and services are not labeled with the same label then changes are not picked up by the watch.

This reverts the change to the watch for endpoints and services so should fix the issue.

I do feel that at some point we should refactor the k8s client a bit so we can do many highly scoped watches rather than one per resource type... but this works for now.

@george-angel
Copy link

Thank you, to clarify, does this mean you only need to label the ingress and then specify that label in traefik config?

@errm
Copy link
Contributor Author

errm commented Aug 1, 2016

Yes that is the idea, the label selector in the traefik config is there in order to select witch ingresses to use, it does not make any sense to use this selector on services and pods since the ingress already defines this selection.

@george-angel
Copy link

Yep, +1

On 1 August 2016 01:08:24 BST, Ed Robinson [email protected] wrote:

Yes that is the idea, the label selector in the traefik config is there
in order to select witch ingresses to use, it does not make any sense
to use this selector on services and pods since the ingress already
defines this selection.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#573 (comment)

Sent from my Android device with K-9 Mail. Please excuse my brevity.

@emilevauge
Copy link
Member

LGTM :)

@errm
Copy link
Contributor Author

errm commented Aug 15, 2016

Ping @emilevauge could we get this merged before we release the next version, or we are going to be breaking released behaviour.

@vdemeester
Copy link
Contributor

LGTM 🐵

@george-angel
Copy link

How can I see when this gets released?

@vdemeester
Copy link
Contributor

It needs a rebase to get merged 😇

We added the ability to filter the ingresses used by traefik based
on a label selector, but we shouldn't need to have matching
labels on every other resource, Ingress allready has a way
to explicty choose which pods end up in the load ballancer
(by refering to the membership of a particular service)
@errm
Copy link
Contributor Author

errm commented Aug 16, 2016

@vdemeester rebased

@vdemeester vdemeester merged commit 498ce6b into traefik:master Aug 16, 2016
@errm errm deleted the fix-k8s-watch branch August 16, 2016 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants