Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubectl top node doesn't work with error: unable to handle the request (get nodes.metrics .k8s.io) #12

Open
sonyafenge opened this issue Feb 10, 2020 · 0 comments

Comments

@sonyafenge
Copy link
Collaborator

What happened:
Run "kubectl get nodes" get correct nodes information, but run "kubectl top node" get error :

Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes.metrics
.k8s.io)

Run "kubectl get pods" get correct pods informaiton, but run "kubectl top pod" get error :

Error from server (ServiceUnavailable): the server is currently unable to handle the request (get pods.metrics.
k8s.io)

What you expected to happen:
run "kubectl top node", get correct node resource usage information
run "kubectl top pod", get correct pod resource usage information

How to reproduce it (as minimally and precisely as possible):

  1. run ./cluster/kube-up.sh to start arktos on GCP
  2. after cluster running, run "kubectl top node" to check node resource usage status
    Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version):
Client Version: version.Info{Major:"2", Minor:"17+", GitVersion:"v2.17.1-83+fed7f520caa45f-dirty", GitCommit:"fed7f520caa45fd1f424377605b3e5820055218b", GitTreeState:"dirty", BuildDate:"2020-02-05T17:48:08Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"2", Minor:"17+", GitVersion:"v2.17.1-83+fed7f520caa45f-dirty", GitCommit:"fed7f520caa45fd1f424377605b3e5820055218b", GitTreeState:"dirty", BuildDate:"2020-02-10T18:52:47Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
commit d511022b09bcfd54bddcfe488960916b184d0f56 (origin/master, origin/HEAD, master)
Author: Jun Shao <[email protected]>
Date:   Thu Jan 23 16:51:30 2020 -0800
  • Cloud provider or hardware configuration:
    Google Cloud
  • OS (e.g: cat /etc/os-release):
NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.3 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
  • Kernel (e.g. uname -a):
Linux alkaiddev 5.0.0-1029-gcp #30~18.04.1-Ubuntu SMP Mon Jan 13 05:40:56 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  • Install tools:
  • Network plugin and version (if this is a network-related bug):
  • Others:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant