Calling Google APIs from within k8s cluster

According to "Finding credentials automatically" from Google Cloud:

...ADC (Application Default Credentials) is able to implicitly find the credentials as long as the GOOGLE_APPLICATION_CREDENTIALS environment variable is set, or as long as the application is running on Compute Engine, GKE, App Engine, or Cloud Functions.

Do I understand correctly that GOOGLE_APPLICATION_CREDENTIALS does not need to be present, if I want to call Google Cloud APIs in current Google Cloud project?

Let's say I'm in a container in a pod, what can I do from within acontainer to test that calling Google Cloud APIs just work™?

1 answer