{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/38187","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/38187/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/38187/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/38187/events","html_url":"https://github.com/kubernetes/kubernetes/issues/38187","id":193751570,"number":38187,"title":"When kubelet runs with --register-node=false and runs static pods, controller-manager tries to delete them regulary","user":{"login":"codablock","id":1884269,"avatar_url":"https://avatars.githubusercontent.com/u/1884269?v=3","gravatar_id":"","url":"https://api.github.com/users/codablock","html_url":"https://github.com/codablock","followers_url":"https://api.github.com/users/codablock/followers","following_url":"https://api.github.com/users/codablock/following{/other_user}","gists_url":"https://api.github.com/users/codablock/gists{/gist_id}","starred_url":"https://api.github.com/users/codablock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codablock/subscriptions","organizations_url":"https://api.github.com/users/codablock/orgs","repos_url":"https://api.github.com/users/codablock/repos","events_url":"https://api.github.com/users/codablock/events{/privacy}","received_events_url":"https://api.github.com/users/codablock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-06T11:44:17Z","updated_at":"2016-12-06T14:31:53Z","closed_at":null,"body":"<!-- Thanks for filing an issue! Before hitting the button, please answer these questions.-->\r\n\r\n**Is this a request for help?** (If yes, you should use our troubleshooting guide and community support channels, see http://kubernetes.io/docs/troubleshooting/.):\r\n\r\n\r\n**What keywords did you search in Kubernetes issues before filing this one?** (If you have found any duplicates, you should instead reply there.): \"static pod orphaned\" and \"static pod register-node\"\r\n\r\n---\r\n\r\n**Is this a BUG REPORT or FEATURE REQUEST?** (choose one): BUG REPORT\r\n\r\n<!--\r\nIf this is a BUG REPORT, please:\r\n  - Fill in as much of the template below as you can.  If you leave out\r\n    information, we can't help you as well.\r\n\r\nIf this is a FEATURE REQUEST, please:\r\n  - Describe *in detail* the feature/behavior/change you'd like to see.\r\n\r\nIn both cases, be ready for followup questions, and please respond in a timely\r\nmanner.  If we can't reproduce a bug or think a feature already exists, we\r\nmight close your issue.  If we're wrong, PLEASE feel free to reopen it and\r\nexplain why.\r\n-->\r\n\r\n**Kubernetes version** (use `kubectl version`): v1.5.0-beta.2\r\n\r\n\r\n**Environment**:\r\n- **Cloud provider or hardware configuration**: azure\r\n- **OS** (e.g. from /etc/os-release): CentOS 7\r\n- **Kernel** (e.g. `uname -a`): Linux master-1 4.8.11-1.el7.elrepo.x86_64 #1 SMP Sat Nov 26 11:13:42 EST 2016 x86_64 x86_64 x86_64 GNU/Linux\r\n- **Install tools**: kargo (+custom changes)\r\n- **Others**:\r\n\r\n\r\n**What happened**:\r\nThe controller-manager logs repeatedly show that it deleted orphaned pods which belong to the static pods of kubelets which have \"--register-node=false\" set:\r\n\r\n```\r\nI1206 11:31:14.941598       1 gc_controller.go:184] Found orphaned Pod kube-controller-manager-master-1 assigned to the Node master-1. Deleting.\r\nI1206 11:31:14.941605       1 gc_controller.go:71] PodGC is force deleting Pod: kube-system:kube-controller-manager-master-1\r\nI1206 11:31:15.425141       1 gc_controller.go:188] Forced deletion of orphaned Pod kube-controller-manager-master-1 succeeded\r\n```\r\n\r\nThe pods/containers are not really deleted. It looks like only the \"mirror\" PODs are deleted and later readded. But I'm not sure about this as I did not dig into mirror PODs that deep.\r\n\r\nThe POD status seems to be jumping from \"Running\" to \"Pending\" and back after every few seconds.\r\n\r\n**What you expected to happen**:\r\nI'd expect that the gc_controller would ignore static/mirror PODs in this case. I'm not sure how GC should work here in case the source kubelet dies as we don't have node status here.\r\n\r\n**How to reproduce it** (as minimally and precisely as possible):\r\nRun a kubelet with \"--register-node=false\" and add some static PODs/manifests. kargo for example does this at the moment. \r\n\r\n**Anything else do we need to know**:\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/265163770","html_url":"https://github.com/kubernetes/kubernetes/issues/38187#issuecomment-265163770","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/38187","id":265163770,"user":{"login":"dims","id":23304,"avatar_url":"https://avatars.githubusercontent.com/u/23304?v=3","gravatar_id":"","url":"https://api.github.com/users/dims","html_url":"https://github.com/dims","followers_url":"https://api.github.com/users/dims/followers","following_url":"https://api.github.com/users/dims/following{/other_user}","gists_url":"https://api.github.com/users/dims/gists{/gist_id}","starred_url":"https://api.github.com/users/dims/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dims/subscriptions","organizations_url":"https://api.github.com/users/dims/orgs","repos_url":"https://api.github.com/users/dims/repos","events_url":"https://api.github.com/users/dims/events{/privacy}","received_events_url":"https://api.github.com/users/dims/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T14:31:53Z","updated_at":"2016-12-06T14:31:53Z","body":"cc @saad-ali "}}
{"actor":{"display_login":"dims"}}