Set up ADC for a containerized development environment
Authentication for containerized applications running on Cloud Run
or Google Kubernetes Engine is handled differently between local testing environments
and Trusted Cloud environments.
Test containerized applications locally
To test your containerized application on your local workstation, you can
configure your container to authenticate with your
local ADC file. For more information, see
Configure ADC with your Google Account.
To test your implementation, use a local Kubernetes implementation such as
minikube
and the gcp-auth
addon.
Run containerized applications on Trusted Cloud
See
Access Trusted Cloud APIs from GKE workloads.
What's next
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[[["Authentication for containerized applications differs between local testing and Google Cloud environments."],["Local testing uses a local Application Default Credentials (ADC) file, configurable via a Google Account."],["Local Kubernetes implementations like `minikube` with the `gcp-auth` addon are recommended for testing."],["Authentication setup in Google Cloud varies based on the environment, including GKE Enterprise, GKE, and Knative serving."],["Workload Identity federation should be used for GKE and Knative serving."]]],[]]