{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/14459","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/14459/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/14459/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/14459/events","html_url":"https://github.com/kubernetes/kubernetes/pull/14459","id":108035530,"number":14459,"title":"Ingress resource V0.2","user":{"login":"bprashanth","id":10927820,"avatar_url":"https://avatars.githubusercontent.com/u/10927820?v=3","gravatar_id":"","url":"https://api.github.com/users/bprashanth","html_url":"https://github.com/bprashanth","followers_url":"https://api.github.com/users/bprashanth/followers","following_url":"https://api.github.com/users/bprashanth/following{/other_user}","gists_url":"https://api.github.com/users/bprashanth/gists{/gist_id}","starred_url":"https://api.github.com/users/bprashanth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bprashanth/subscriptions","organizations_url":"https://api.github.com/users/bprashanth/orgs","repos_url":"https://api.github.com/users/bprashanth/repos","events_url":"https://api.github.com/users/bprashanth/events{/privacy}","received_events_url":"https://api.github.com/users/bprashanth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/cla:%20yes","name":"cla: yes","color":"bfe5bf"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/needs-rebase","name":"needs-rebase","color":"BDBDBD"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/size/XXL","name":"size/XXL","color":"ee0000"}],"state":"open","locked":false,"assignee":{"login":"thockin","id":5595220,"avatar_url":"https://avatars.githubusercontent.com/u/5595220?v=3","gravatar_id":"","url":"https://api.github.com/users/thockin","html_url":"https://github.com/thockin","followers_url":"https://api.github.com/users/thockin/followers","following_url":"https://api.github.com/users/thockin/following{/other_user}","gists_url":"https://api.github.com/users/thockin/gists{/gist_id}","starred_url":"https://api.github.com/users/thockin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thockin/subscriptions","organizations_url":"https://api.github.com/users/thockin/orgs","repos_url":"https://api.github.com/users/thockin/repos","events_url":"https://api.github.com/users/thockin/events{/privacy}","received_events_url":"https://api.github.com/users/thockin/received_events","type":"User","site_admin":false},"milestone":null,"comments":15,"created_at":"2015-09-24T00:55:40Z","updated_at":"2015-09-25T01:27:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/14459","html_url":"https://github.com/kubernetes/kubernetes/pull/14459","diff_url":"https://github.com/kubernetes/kubernetes/pull/14459.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/14459.patch"},"body":"Eg:\r\n```yaml\r\napiVersion: v1\r\nkind: Ingress\r\nmetadata:\r\n  name: lbconfig\r\nspec:\r\n  backend:\r\n    serviceRef:\r\n      name: \"foo\"\r\n    servicePort: 80\r\n  rules:\r\n  - host: foo.bar.com\r\n    http:\r\n      paths:\r\n      - path: \"/foo\"\r\n        backend:\r\n          serviceRef:\r\n            name: \"foo\"\r\n          servicePort: 80\r\n\r\n```\r\nOne can create an Ingress with either a default backend, ingress rules, or both but not neither. \r\n\r\nCurrent kubectl resource printer is a placeholder, still figuring out the ui. This is a resource better viewed via -o yaml. \r\n```\r\nNAME      RULES         SERVICE:PORT   ADDRESS\r\nechomap   -             foo:80         0.0.0.0\r\n          foo.bar.com   \r\n          /foo          foo:80\r\n          /bar          bar:8080\r\n          bar.baz.com   \r\n          /baz[.*]      foo:80\r\n          /b?ar         bar:8080\r\nlbmap     -             foo:80         0.0.0.1\r\n          foo.bar.com   \r\n          /foo          foo:80\r\n          /bar          bar:8080\r\n          bar.baz.com   \r\n          /baz[.*]      foo:80\r\n          /b?ar         bar:8080\r\n\r\n```\r\n\r\nhttps://github.com/kubernetes/kubernetes/pull/13947  https://github.com/kubernetes/kubernetes/pull/12827 https://github.com/kubernetes/kubernetes/issues/561 "},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/143097586","html_url":"https://github.com/kubernetes/kubernetes/pull/14459#issuecomment-143097586","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/14459","id":143097586,"user":{"login":"bprashanth","id":10927820,"avatar_url":"https://avatars.githubusercontent.com/u/10927820?v=3","gravatar_id":"","url":"https://api.github.com/users/bprashanth","html_url":"https://github.com/bprashanth","followers_url":"https://api.github.com/users/bprashanth/followers","following_url":"https://api.github.com/users/bprashanth/following{/other_user}","gists_url":"https://api.github.com/users/bprashanth/gists{/gist_id}","starred_url":"https://api.github.com/users/bprashanth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bprashanth/subscriptions","organizations_url":"https://api.github.com/users/bprashanth/orgs","repos_url":"https://api.github.com/users/bprashanth/repos","events_url":"https://api.github.com/users/bprashanth/events{/privacy}","received_events_url":"https://api.github.com/users/bprashanth/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T01:27:36Z","updated_at":"2015-09-25T01:27:36Z","body":"> Why does it need a different model type for that?\r\n\r\nWait you don't need a new model, this is what your tcp ingress would look like:\r\n```\r\napiVersion: v1\r\nkind: Ingress\r\nmetadata:\r\n  name: no-rules-map\r\nspec:\r\n  backend:\r\n    serviceName: \"foo\"\r\n    servicePort: 80\r\n  rules: []\r\n```"}}