Kubectl top nodes does not show metrics of primary Master node – SMAX User Discussions
for your question “ I also see the difference in IP and hostname, apart from the primary master node, all the nodes show IP address but for primary master it displays “Hostname”. ”
this command will get you the ip address and hostname “kubectl get node -o wide”
primary master has hostname because it’s configured when you add the master, if you want add the node with hostname you provide the name when you run “cdfctl node add ” script other wise you just provide the IP
to fix this (you don’t have to do so) you’ll have to rename the primary master node from hostname to IP
Read more here: Source link