Lightweight kubectl docker image on alpine with gcloud
Google Cloud SDK 410.0.0
bq 2.0.81
bundled-python3-unix 3.9.12
core 2022.11.11
gcloud-crc32c 1.0.0
gke-gcloud-auth-plugin 0.4.0
gsutil 5.16
version: 1.22.14
set envs:
- GCP_ACCOUNT=example@example-project.iam.gserviceaccount.com
- GCP_KEY_FILE=example_gcp_key.json
- GCP_PROJECT=example_project_id
then
gcloud auth activate-service-account ${GCP_ACCOUNT} --key-file=${GCP_KEY_PATH} --project ${GCP_PROJECT}