{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64027","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64027/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64027/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64027/events","html_url":"https://github.com/kubernetes/kubernetes/issues/64027","id":324398647,"node_id":"MDU6SXNzdWUzMjQzOTg2NDc=","number":64027,"title":"\"kubectl top\" no longer works when --read-only-port=0 is set on kubelet","user":{"login":"jeroenjacobs1205","id":8290833,"node_id":"MDQ6VXNlcjgyOTA4MzM=","avatar_url":"https://avatars1.githubusercontent.com/u/8290833?v=4","gravatar_id":"","url":"https://api.github.com/users/jeroenjacobs1205","html_url":"https://github.com/jeroenjacobs1205","followers_url":"https://api.github.com/users/jeroenjacobs1205/followers","following_url":"https://api.github.com/users/jeroenjacobs1205/following{/other_user}","gists_url":"https://api.github.com/users/jeroenjacobs1205/gists{/gist_id}","starred_url":"https://api.github.com/users/jeroenjacobs1205/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeroenjacobs1205/subscriptions","organizations_url":"https://api.github.com/users/jeroenjacobs1205/orgs","repos_url":"https://api.github.com/users/jeroenjacobs1205/repos","events_url":"https://api.github.com/users/jeroenjacobs1205/events{/privacy}","received_events_url":"https://api.github.com/users/jeroenjacobs1205/received_events","type":"User","site_admin":false},"labels":[{"id":105146071,"node_id":"MDU6TGFiZWwxMDUxNDYwNzE=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/bug","name":"kind/bug","color":"e11d21","default":false},{"id":173493665,"node_id":"MDU6TGFiZWwxNzM0OTM2NjU=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/node","name":"sig/node","color":"d2b48c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-18T12:52:00Z","updated_at":"2018-06-19T09:59:31Z","closed_at":null,"author_association":"NONE","body":"\r\n**Is this a BUG REPORT or FEATURE REQUEST?**:\r\n\r\n> Uncomment only one, leave it on its own line:\r\n>\r\n/kind bug\r\n> /kind feature\r\n\r\n\r\n**What happened**:\r\n\r\nAfter setting --read-only-port=0 on all kubelets in my cluster, \"kubectl top\" no longer works:\r\n\r\n```\r\nkubectl top node\r\nerror: metrics not available yet\r\n```\r\n\r\n`kubectl top pods --all-namespaces\r\n                                                                                           `        \r\n(no output is displayed)\r\n\r\n**What you expected to happen**:\r\n\r\nI expected the output as before the change:\r\n\r\n```\r\nkubectl top nodes\r\nNAME            CPU(cores)   CPU%      MEMORY(bytes)   MEMORY%\r\nip-10-9-0-244   63m          7%        1061Mi          64%\r\nip-10-9-0-80    57m          7%        1008Mi          61%\r\nip-10-9-1-231   56m          7%        1141Mi          69%\r\n```\r\n\r\n```\r\nkubectl top pods --all-namespaces                                                                                                 \r\nNAMESPACE       NAME                                         CPU(cores)   MEMORY(bytes)\r\nalb-heartbeat   alb-heartbeat-app-64778c56fc-82tmf           0m           8Mi\r\nalb-heartbeat   alb-heartbeat-app-64778c56fc-xtg9m           0m           16Mi\r\nconduit         controller-5b576d647b-xwpv7                  1m           87Mi\r\nconduit         grafana-7c85b54866-wnhjl                     3m           43Mi\r\nconduit         prometheus-5d8f9cd8b8-r5mgx                  2m           117Mi\r\nconduit         web-5bf454788f-5nnzt                         0m           37Mi\r\nkube-system     heapster-5d758f7c9d-89s6p                    1m           44Mi\r\nkube-system     kube-apiserver-ip-10-9-0-244                 13m          311Mi\r\nkube-system     kube-controller-manager-ip-10-9-0-244        11m          81Mi\r\nkube-system     kube-dns-66d5bc69b8-hcvrn                    0m           40Mi\r\nkube-system     kube-proxy-n4t85                             1m           26Mi\r\nkube-system     kube-proxy-t9tcm                             1m           27Mi\r\nkube-system     kube-proxy-tx7hb                             1m           24Mi\r\nkube-system     kube-scheduler-ip-10-9-0-244                 3m           23Mi\r\nkube-system     kubernetes-dashboard-5bd6f767c7-nw8h2        0m           25Mi\r\nkube-system     nfs-client-provisioner-67995fb67c-nn7p5      0m           13Mi\r\nkube-system     nginx-dummy-ip-10-9-0-80                     0m           2Mi\r\nkube-system     nginx-dummy-ip-10-9-1-231                    0m           3Mi\r\nkube-system     nginx-master-lb-ip-10-9-0-80                 0m           2Mi\r\nkube-system     nginx-master-lb-ip-10-9-1-231                0m           4Mi\r\nkube-system     traefik-ingress-controller-55bb447c4-9czrg   1m           24Mi\r\nkube-system     weave-net-kzdfw                              0m           55Mi\r\nkube-system     weave-net-lfb59                              0m           64Mi\r\nkube-system     weave-net-qprdl                              0m           54Mi\r\n```\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\n\r\nAdd --read-only-port=0 to kubelet.\r\n\r\n**Anything else we need to know?**:\r\n\r\n**Environment**:\r\n- Kubernetes version (use `kubectl version`): 1.9.7\r\n- Cloud provider or hardware configuration: AWS\r\n- OS (e.g. from /etc/os-release): CentOS\r\n- Kernel (e.g. `uname -a`): Linux ip-10-9-0-244.eu-west-1.compute.internal 4.16.0-1.el7.elrepo.x86_64 #1 SMP Sun Apr 1 20:13:35 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n- Install tools: custom ansible scripts\r\n- Others:\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/398344886","html_url":"https://github.com/kubernetes/kubernetes/issues/64027#issuecomment-398344886","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64027","id":398344886,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODM0NDg4Ng==","user":{"login":"jeroenjacobs1205","id":8290833,"node_id":"MDQ6VXNlcjgyOTA4MzM=","avatar_url":"https://avatars1.githubusercontent.com/u/8290833?v=4","gravatar_id":"","url":"https://api.github.com/users/jeroenjacobs1205","html_url":"https://github.com/jeroenjacobs1205","followers_url":"https://api.github.com/users/jeroenjacobs1205/followers","following_url":"https://api.github.com/users/jeroenjacobs1205/following{/other_user}","gists_url":"https://api.github.com/users/jeroenjacobs1205/gists{/gist_id}","starred_url":"https://api.github.com/users/jeroenjacobs1205/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeroenjacobs1205/subscriptions","organizations_url":"https://api.github.com/users/jeroenjacobs1205/orgs","repos_url":"https://api.github.com/users/jeroenjacobs1205/repos","events_url":"https://api.github.com/users/jeroenjacobs1205/events{/privacy}","received_events_url":"https://api.github.com/users/jeroenjacobs1205/received_events","type":"User","site_admin":false},"created_at":"2018-06-19T09:59:31Z","updated_at":"2018-06-19T09:59:31Z","author_association":"NONE","body":"The only fix I found so far, is editing the heapster cluster-role, and adding \"nodes/stats\" to the allowed resources.\r\n\r\nProbably duplicate of this one: https://github.com/kubernetes/heapster/issues/1936"}}
{"actor":{"display_login":"jeroenjacobs1205"}}