1
0
Fork 0

add a new gcloud auth plugin recommended by doc

for kubernetes 1.25
This commit is contained in:
Mikhail Goncharov 2022-06-20 11:19:11 +02:00
parent 47a8401ffa
commit eef12f6111

View file

@ -20,7 +20,7 @@
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# install all the required tools for managing the cluster
sudo apt install -y google-cloud-sdk kubectl docker
sudo apt install -y google-cloud-sdk kubectl docker google-cloud-sdk-gke-gcloud-auth-plugin
# configure gCloud
source "${ROOT_DIR}/k8s_config"
@ -29,4 +29,4 @@ gcloud config set project ${GCP_PROJECT}
gcloud config set compute/zone ${GCP_ZONE}
# setup docker for pushing containers
gcloud auth configure-docker
gcloud container clusters get-credentials $GCP_CLUSTER
gcloud container clusters get-credentials $GCP_CLUSTER