<p>Is there any way to get instance metadata on IBM Cloud Kubernetes cluster, from internal pod? Something like doing <code>curl</code> to <code>http://metadata.google.internal/computeMetadata/v1/instance/...</code> on GKE clusters, or <code>http://169.254.169.254/latest/...</code> on EKS clusters.</p>

<p>Any help will be appreciated. Thanks!</p>

mcruz2401
<p>I think I follow what you're after.. you're able to get details/metadata about your worker node from the SoftLayer APIs available - <a href="https://sldn.softlayer.com/reference/softlayerapi/" rel="nofollow noreferrer">https://sldn.softlayer.com/reference/softlayerapi/</a></p>

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

<p>Hope that helps. </p>
