kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
k -n kube-system edit deploy metrics-server
containers: | |
- args: | |
- --cert-dir=/tmp | |
- --secure-port=4443 | |
- --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname | |
- --kubelet-use-node-status-port | |
- --metric-resolution=15s | |
command: | |
- /metrics-server | |
- --kubelet-insecure-tls | |
- --kubelet-preferred-address-types=InternalIP |
Thank you for these!
Thank you very VERY much for this!
Thanks so much for this! it works for me!
Hi, Can someone let me know the location of this file kubernetes-metrics-server.yaml
@NileshGule I've follow the exactly steps provided and I still got no lucky. Any ideas?
same for me @ghost
For anyone getting the error i figured it out, see article - https://computingforgeeks.com/fix-error-metrics-api-not-available-in-kubernetes/
Awesome, it works for me!