It looks like heapster is not enabled on the cluster? Is this a planned feature?
kubectl top node
Error from server (NotFound): the server could not find the requested resource (get services http:heapster:)
I’ve used the same on other cloud providers (AKS, IKS) and it seems to be enabled…
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The following will help with understanding what is happening on the nodes:
$ cat bin/node-resources.sh
#!/bin/bash
set -euo pipefail
echo -e "Iterating...\n"
nodes=$(kubectl get node --no-headers -o custom-columns=NAME:.metadata.name)
for node in $nodes; do
echo "Node: $node"
kubectl describe node "$node" | sed '1,/Non-terminated Pods/d'
echo
done
You have to deploy heapster in your cluster to collect metrics ;) by default its not activated on digitalocean k8s-cluster.
There is a helm chart for heapster: https://github.com/helm/charts/tree/master/stable/heapster
Install metrics server chart
Update the command metrics server deployment and add the following two options to the pod command :
- --kubelet-insecure-tls
- --kubelet-preferred-address-types=InternalIP
Command will be look like this :
command:
- /metrics-server
- --kubelet-insecure-tls
- --kubelet-preferred-address-types=InternalIP
Wait two or three minutes, then the “top” command should work.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.