Instance metadata on IBM Cloud

Asked by At

Is there any way to get instance metadata on IBM Cloud Kubernetes cluster, from internal pod? Something like doing curl to on GKE clusters, or on EKS clusters.

Any help will be appreciated. Thanks!

1 Answers

Community On

I think I follow what you're after.. you're able to get details/metadata about your worker node from the SoftLayer APIs available -

For k8s specific info you can utilize the k8s api-server to query metadata about things like the node, pods, etc at the Kubernetes.default.svc.cluster.local address from inside a pod. You can find the service account and token from within your pod at /var/run/secrets/

Hope that helps.