imawful
imawful

Reputation: 135

Is there a way to get node level information in kubernetes pods?

I need low level information about the node, like number of cores, core ID and other things which is part of the kubelet in a pod running in the node. How do I get this?

Upvotes: 2

Views: 64

Answers (1)

miracle
miracle

Reputation: 385

You can access the Kubernetes API to retrieve information about your node where your pod is running.

kubectl get node <node name>  -o json

or

kubectl describe node <node name>

By running the command you'll be able to see the NodeInfo on the lower part such as NodeID, bootID, machineID, systemUUID, etc.

Upvotes: 1

Related Questions