Node Details

Hi All,

Is there any way to query current cloud type and also node details like it’s id, instance type, region in which it is running in a custom controller?.

Thanks

The Go client / API Server can be used to pull node information. Here is a super simple / quick sample:

https://github.com/neilpeterson/kubernetes-sample-and-demos/blob/master/99-kubernetes-go-client-samples/list-nodes/list-nodes.go .

For non-Kubernetes native things like region, if these noted in an annotation / label, they should also be accessible. If not, I think you will have to get creative.

Hope this helps.