{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/43104","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/43104/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/43104/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/43104/events","html_url":"https://github.com/kubernetes/kubernetes/issues/43104","id":214220358,"number":43104,"title":"DaemonSets will conflict with hostPorts on nodes it shouldn't apply to","user":{"login":"lmickh","id":3875710,"avatar_url":"https://avatars3.githubusercontent.com/u/3875710?v=3","gravatar_id":"","url":"https://api.github.com/users/lmickh","html_url":"https://github.com/lmickh","followers_url":"https://api.github.com/users/lmickh/followers","following_url":"https://api.github.com/users/lmickh/following{/other_user}","gists_url":"https://api.github.com/users/lmickh/gists{/gist_id}","starred_url":"https://api.github.com/users/lmickh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmickh/subscriptions","organizations_url":"https://api.github.com/users/lmickh/orgs","repos_url":"https://api.github.com/users/lmickh/repos","events_url":"https://api.github.com/users/lmickh/events{/privacy}","received_events_url":"https://api.github.com/users/lmickh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-14T22:03:28Z","updated_at":"2017-03-15T00:51:21Z","closed_at":null,"body":"Bug report\r\n\r\n**Kubernetes version** (use `kubectl version`):\r\n```\r\nClient Version: version.Info{Major:\"1\", Minor:\"5\", GitVersion:\"v1.5.4\", GitCommit:\"7243c69eb523aa4377bce883e7c0dd76b84709a1\", GitTreeState:\"clean\", BuildDate:\"2017-03-08T02:50:34Z\", GoVersion:\"go1.8\", Compiler:\"gc\", Platform:\"darwin/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"5\", GitVersion:\"v1.5.3+coreos.0\", GitCommit:\"8fc95b64d0fe1608d0f6c788eaad2c004f31e7b7\", GitTreeState:\"clean\", BuildDate:\"2017-02-15T19:52:15Z\", GoVersion:\"go1.7.4\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n```\r\n\r\n**Environment**:\r\n- **Cloud provider or hardware configuration**: Azure\r\n- **OS** (e.g. from /etc/os-release): CoreOS 1298.5.0\r\n- **Kernel** (e.g. `uname -a`): 4.9.9-coreos-r1\r\n- **Install tools**:  Manual\r\n\r\n**What happened**:\r\n\r\nAttempted to run a daemonset that includes a hostPort and is using a nodeSelector.  The controller will fail to place to the pod on nodes that do not match the nodeSelector if there is a port conflict with one of the hostPorts.\r\n\r\n**What you expected to happen**:\r\n\r\nThe controller should not try to place a pod on a node that does not match the nodeSelector within a daemonset.\r\n\r\n**How to reproduce it** (as minimally and precisely as possible):\r\n\r\nAssuming the master node has the API running on 443, create a daemonset with a hostPort 443 and a nodeSelector (ex. role=edge).  Use `kubectl apply` to install the daemonset.  The controller should indicate it is trying to place the pod with an event message similar to this:\r\n```\r\nreason: 'FailedPlacement' failed to place pod on \"master-1\": host port conflict\r\n```\r\n\r\nRemove the conflicting hostPort and the daemonset will be applied without attempting to be placed on the node that does not match the nodeSelector.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/286608015","html_url":"https://github.com/kubernetes/kubernetes/issues/43104#issuecomment-286608015","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/43104","id":286608015,"user":{"login":"lukaszo","id":97335,"avatar_url":"https://avatars0.githubusercontent.com/u/97335?v=3","gravatar_id":"","url":"https://api.github.com/users/lukaszo","html_url":"https://github.com/lukaszo","followers_url":"https://api.github.com/users/lukaszo/followers","following_url":"https://api.github.com/users/lukaszo/following{/other_user}","gists_url":"https://api.github.com/users/lukaszo/gists{/gist_id}","starred_url":"https://api.github.com/users/lukaszo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukaszo/subscriptions","organizations_url":"https://api.github.com/users/lukaszo/orgs","repos_url":"https://api.github.com/users/lukaszo/repos","events_url":"https://api.github.com/users/lukaszo/events{/privacy}","received_events_url":"https://api.github.com/users/lukaszo/received_events","type":"User","site_admin":false},"created_at":"2017-03-15T00:51:21Z","updated_at":"2017-03-15T00:51:21Z","body":"It looks like it's fixed in 1.6(master) I couldn't reproduce it. Does it somehow block you? It seems to be just an UX issue."}}
{"actor":{"display_login":"lukaszo"}}