{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23920","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23920/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23920/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23920/events","html_url":"https://github.com/kubernetes/kubernetes/issues/23920","id":146354112,"number":23920,"title":"HostPort seemingly not working","user":{"login":"microadam","id":857427,"avatar_url":"https://avatars.githubusercontent.com/u/857427?v=3","gravatar_id":"","url":"https://api.github.com/users/microadam","html_url":"https://github.com/microadam","followers_url":"https://api.github.com/users/microadam/followers","following_url":"https://api.github.com/users/microadam/following{/other_user}","gists_url":"https://api.github.com/users/microadam/gists{/gist_id}","starred_url":"https://api.github.com/users/microadam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microadam/subscriptions","organizations_url":"https://api.github.com/users/microadam/orgs","repos_url":"https://api.github.com/users/microadam/repos","events_url":"https://api.github.com/users/microadam/events{/privacy}","received_events_url":"https://api.github.com/users/microadam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/area/networking","name":"area/networking","color":"006b75"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/cluster","name":"team/cluster","color":"d2b48c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-04-06T15:41:09Z","updated_at":"2016-09-30T06:05:46Z","closed_at":null,"body":"I am not sure if what I am doing is supposed to work. But I have created the following pod:\r\n\r\n```\r\napiVersion: v1\r\nkind: Pod\r\nmetadata:\r\n  name: nginx-host\r\nspec:\r\n  containers:\r\n  - image: caseydavenport/nginx\r\n    imagePullPolicy: IfNotPresent\r\n    name: nginx-host\r\n    ports:\r\n    - containerPort: 80\r\n      hostPort: 80\r\n  restartPolicy: Always\r\n```\r\n\r\nThis gives me a pod with the following:\r\n```\r\n        \"hostIP\": \"178.x.x.x\",\r\n        \"podIP\": \"10.x.x.x\",\r\n```\r\n\r\nFrom the host (178.x.x.x), running: `curl http://10.x.x.x` gets me the response from nginx that I expect.\r\nFrom the host (178.x.x.x), running `curl http://178.x.x.x` gets me `port 80: Connection refused`.\r\n\r\nShould this work? Or have I missed something?\r\n\r\nVersions:\r\n\r\n```\r\nClient Version: version.Info{Major:\"1\", Minor:\"2\", GitVersion:\"v1.2.1\", GitCommit:\"50809107cd47a1f62da362bccefdd9e6f7076145\", GitTreeState:\"clean\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"2\", GitVersion:\"v1.2.1\", GitCommit:\"50809107cd47a1f62da362bccefdd9e6f7076145\", GitTreeState:\"clean\"}\r\n```\r\n\r\nNetworking: Calico\r\n\r\nHost OS: Ubuntu 16.04\r\n\r\nDocker: 1.10.3\r\n\r\nThanks a lot"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/250666428","html_url":"https://github.com/kubernetes/kubernetes/issues/23920#issuecomment-250666428","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/23920","id":250666428,"user":{"login":"chulkilee","id":69235,"avatar_url":"https://avatars.githubusercontent.com/u/69235?v=3","gravatar_id":"","url":"https://api.github.com/users/chulkilee","html_url":"https://github.com/chulkilee","followers_url":"https://api.github.com/users/chulkilee/followers","following_url":"https://api.github.com/users/chulkilee/following{/other_user}","gists_url":"https://api.github.com/users/chulkilee/gists{/gist_id}","starred_url":"https://api.github.com/users/chulkilee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chulkilee/subscriptions","organizations_url":"https://api.github.com/users/chulkilee/orgs","repos_url":"https://api.github.com/users/chulkilee/repos","events_url":"https://api.github.com/users/chulkilee/events{/privacy}","received_events_url":"https://api.github.com/users/chulkilee/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T06:05:46Z","updated_at":"2016-09-30T06:05:46Z","body":"I confirm this problem when I set up a cluster on bare metal using kubeadm. Since I want to use nginx ingress controller on 80 and 443 but apiserver uses 443 in the cluster, `hostNetwork` cannot be an option in my case."}}
{"actor":{"display_login":"chulkilee"}}