{"action":"created","issue":{"url":"https://api.github.com/repos/containous/traefik/issues/1195","repository_url":"https://api.github.com/repos/containous/traefik","labels_url":"https://api.github.com/repos/containous/traefik/issues/1195/labels{/name}","comments_url":"https://api.github.com/repos/containous/traefik/issues/1195/comments","events_url":"https://api.github.com/repos/containous/traefik/issues/1195/events","html_url":"https://github.com/containous/traefik/issues/1195","id":210340888,"number":1195,"title":"Serve based on default domain in kubernetes like in consulcatalog?","user":{"login":"deitch","id":282526,"avatar_url":"https://avatars0.githubusercontent.com/u/282526?v=3","gravatar_id":"","url":"https://api.github.com/users/deitch","html_url":"https://github.com/deitch","followers_url":"https://api.github.com/users/deitch/followers","following_url":"https://api.github.com/users/deitch/following{/other_user}","gists_url":"https://api.github.com/users/deitch/gists{/gist_id}","starred_url":"https://api.github.com/users/deitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deitch/subscriptions","organizations_url":"https://api.github.com/users/deitch/orgs","repos_url":"https://api.github.com/users/deitch/repos","events_url":"https://api.github.com/users/deitch/events{/privacy}","received_events_url":"https://api.github.com/users/deitch/received_events","type":"User","site_admin":false},"labels":[{"id":410567211,"url":"https://api.github.com/repos/containous/traefik/labels/area/provider/k8s","name":"area/provider/k8s","color":"d4c5f9","default":false},{"id":259872491,"url":"https://api.github.com/repos/containous/traefik/labels/kind/question","name":"kind/question","color":"cc317c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-02-26T19:24:50Z","updated_at":"2017-06-09T13:42:02Z","closed_at":"2017-06-09T13:42:02Z","body":"### What version of Traefik are you using (`traefik version`)?\r\n1.1.2 (docker image)\r\n\r\n### What is your environment & configuration (arguments, toml...)?\r\nkubernetes, default, `--kubernetes --web`\r\n\r\n### What did you do?\r\nRun as a kubernetes ingress controller\r\n\r\n### What did you expect to see?\r\nEnable flexible parent domain like with consul-catalog\r\n\r\nIn consul catalog mode, I can set `consulcatalog.domain=foo.mydomain.com`, and every service that is registered will be a sub of that service. Registering service `bar` means traefik will serve `bar.foo.mydomain.com`.\r\n\r\nIn kubernetes (and some others) it doesn't do that. Rather, if using the `host: ` rule in the Ingress, it just treats the value of `host: ` as absolute.\r\n\r\nIs there a way to get it to say, \"I have been configured with a parent domain, so all host will be subdomains of the parent\", similar to how consul does it?\r\n\r\nTechnically, kubernetes ingress _do_ support wildcard, but only as the subdomain, not the parent.\r\n\r\nThe use case: portable configs. If I put the entire parent domain in my config, my config file no longer is portable across deployments, unlike my container app deploys. I would prefer to configure my Ingress as just `host: myservice`, and Traefik itself in one of two modes:\r\n\r\n1. `--traefik.domain=some.domain.com` which would cause traefik to match  `myservice.some.domain.com`\r\n2 .`--traefik.domain='*'` which would cause traefik to match `myservice.<anything>`\r\n\r\nTraefik can make apps and configs highly portable."},"comment":{"url":"https://api.github.com/repos/containous/traefik/issues/comments/307391889","html_url":"https://github.com/containous/traefik/issues/1195#issuecomment-307391889","issue_url":"https://api.github.com/repos/containous/traefik/issues/1195","id":307391889,"user":{"login":"ldez","id":5674651,"avatar_url":"https://avatars3.githubusercontent.com/u/5674651?v=3","gravatar_id":"","url":"https://api.github.com/users/ldez","html_url":"https://github.com/ldez","followers_url":"https://api.github.com/users/ldez/followers","following_url":"https://api.github.com/users/ldez/following{/other_user}","gists_url":"https://api.github.com/users/ldez/gists{/gist_id}","starred_url":"https://api.github.com/users/ldez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldez/subscriptions","organizations_url":"https://api.github.com/users/ldez/orgs","repos_url":"https://api.github.com/users/ldez/repos","events_url":"https://api.github.com/users/ldez/events{/privacy}","received_events_url":"https://api.github.com/users/ldez/received_events","type":"User","site_admin":false},"created_at":"2017-06-09T13:42:02Z","updated_at":"2017-06-09T13:42:02Z","body":"I'll close this issue, because I think the question is answered, but feel free to continue the conversation."}}
{"actor":{"display_login":"ldez"}}