add a new gcloud auth plugin recommended by doc
for kubernetes 1.25
This commit is contained in:
parent
47a8401ffa
commit
eef12f6111
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@
|
||||||
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
|
|
||||||
# install all the required tools for managing the cluster
|
# 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
|
# configure gCloud
|
||||||
source "${ROOT_DIR}/k8s_config"
|
source "${ROOT_DIR}/k8s_config"
|
||||||
|
@ -29,4 +29,4 @@ gcloud config set project ${GCP_PROJECT}
|
||||||
gcloud config set compute/zone ${GCP_ZONE}
|
gcloud config set compute/zone ${GCP_ZONE}
|
||||||
# setup docker for pushing containers
|
# setup docker for pushing containers
|
||||||
gcloud auth configure-docker
|
gcloud auth configure-docker
|
||||||
gcloud container clusters get-credentials $GCP_CLUSTER
|
gcloud container clusters get-credentials $GCP_CLUSTER
|
||||||
|
|
Loading…
Reference in a new issue