Skip to content

Commit 2974adf

Browse files
authored
Merge pull request kubernetes#81337 from YangLu1031/master
Add instruction for "Application Default Credentials" to run e2e tests locally
2 parents 78a73e7 + 9d68d44 commit 2974adf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cluster/gce/windows/README-GCE-Windows-kube-up.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ rm -rf ./kubernetes/; rm -f kubernetes.tar.gz; rm -f ~/.kube/config
2323
# if you're working with multiple projects and don't want to repeatedly switch
2424
# between gcloud config configurations.
2525
export CLOUDSDK_CORE_PROJECT=<your_project_name>
26+
27+
# To run e2e test locally, make sure "Application Default Credentials" is set in any of the places:
28+
# References: https://cloud.google.com/sdk/docs/authorizing#authorizing_with_a_service_account
29+
# https://cloud.google.com/sdk/gcloud/reference/auth/application-default/
30+
# 1. $HOME/.config/gcloud/application_default_credentials.json, if doesn't exist, run this command:
31+
gcloud auth application-default login
32+
# Or 2. Create a json format credential file as per http://cloud/docs/authentication/production,
33+
# then export to environment variable
34+
export GOOGLE_APPLICATION_CREDENTIAL=[path_to_the_json_file]
2635
```
2736

2837
### 1. Build Kubernetes

0 commit comments

Comments
 (0)