{"action":"created","issue":{"url":"https://api.github.com/repos/containous/traefik/issues/363","repository_url":"https://api.github.com/repos/containous/traefik","labels_url":"https://api.github.com/repos/containous/traefik/issues/363/labels{/name}","comments_url":"https://api.github.com/repos/containous/traefik/issues/363/comments","events_url":"https://api.github.com/repos/containous/traefik/issues/363/events","html_url":"https://github.com/containous/traefik/issues/363","id":154061680,"number":363,"title":"Add label matching for kubernetes ingests","user":{"login":"pnegahdar","id":833067,"avatar_url":"https://avatars.githubusercontent.com/u/833067?v=3","gravatar_id":"","url":"https://api.github.com/users/pnegahdar","html_url":"https://github.com/pnegahdar","followers_url":"https://api.github.com/users/pnegahdar/followers","following_url":"https://api.github.com/users/pnegahdar/following{/other_user}","gists_url":"https://api.github.com/users/pnegahdar/gists{/gist_id}","starred_url":"https://api.github.com/users/pnegahdar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnegahdar/subscriptions","organizations_url":"https://api.github.com/users/pnegahdar/orgs","repos_url":"https://api.github.com/users/pnegahdar/repos","events_url":"https://api.github.com/users/pnegahdar/events{/privacy}","received_events_url":"https://api.github.com/users/pnegahdar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/containous/traefik/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-10T17:24:19Z","updated_at":"2016-05-26T11:49:45Z","closed_at":null,"body":"I want to add label (or annotation) matching to kubernetes. i.e \r\n```\r\napiVersion: extensions/v1beta1\r\nkind: Ingress\r\nmetadata:\r\n  name: app_name\r\n  labels:\r\n     - traeffik/balancer-name: load-balancer-1\r\nspec:\r\n  rules:\r\n  - host: news.site.com\r\n    http:\r\n      paths:\r\n      - backend:\r\n          serviceName: \"app_service\"\r\n          servicePort:  80 \r\n```\r\n\r\n`traefik --web --kubernetes --kubernetes.label-filter \"traefik/balancer-name=load-balancer-1\"` would then ensure only those with that label join the balancer. \r\n\r\nSee: http://kubernetes.io/docs/user-guide/labels/#label-selectors\r\n\r\nI know namespaces are currently supported but thats not fine-grained enough for most kube deploy systems. Thoughts on this?"},"comment":{"url":"https://api.github.com/repos/containous/traefik/issues/comments/221849797","html_url":"https://github.com/containous/traefik/issues/363#issuecomment-221849797","issue_url":"https://api.github.com/repos/containous/traefik/issues/363","id":221849797,"user":{"login":"errm","id":115280,"avatar_url":"https://avatars.githubusercontent.com/u/115280?v=3","gravatar_id":"","url":"https://api.github.com/users/errm","html_url":"https://github.com/errm","followers_url":"https://api.github.com/users/errm/followers","following_url":"https://api.github.com/users/errm/following{/other_user}","gists_url":"https://api.github.com/users/errm/gists{/gist_id}","starred_url":"https://api.github.com/users/errm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/errm/subscriptions","organizations_url":"https://api.github.com/users/errm/orgs","repos_url":"https://api.github.com/users/errm/repos","events_url":"https://api.github.com/users/errm/events{/privacy}","received_events_url":"https://api.github.com/users/errm/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T11:49:45Z","updated_at":"2016-05-26T11:49:45Z","body":"re: annotation vs labels I think that the way that k8s sees the distiction is:\r\n* labels are for things that you may wan't to do selection on - they are strictly validated to a particular subset of characters.\r\n* annotations are more a way of storing a random blob of data on to an api object, the validation is much looser.\r\n\r\nI think labels is the way to go for this use case, as it would allow us to request the subset of ingresses we want from the apiserver without having to get them all and then filter client side."}}
{"actor":{"display_login":"errm"}}