Skip to content

Commit

Permalink
secret auth added
Browse files Browse the repository at this point in the history
  • Loading branch information
kundan59 committed Sep 12, 2023
1 parent 88d0c02 commit e98f58c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps-deployment-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

PROJECT_ID="$(gcloud config get-value project)"
REGION="$1"
SA=$(cat"$2")
echo "$SA"
# install gke-gcloud-auth-plugin to install kubectl and authenticate gke.
gcloud components install gke-gcloud-auth-plugin
kubectl create secret generic gcpsm-secret --from-file=secret-access-credentials="$SA"
gcloud beta iam service-accounts keys get-public-key 4a80d16de2bb10e8128a88d83448f34250169649 --iam-account=car-demo@boreal-gravity-396810.iam.gserviceaccount.com --output-file=key.pem
kubectl create secret generic gcpsm-secret --from-file=secret-access-credentials=key.pem

build_and_deploy_service(){

Expand Down

0 comments on commit e98f58c

Please sign in to comment.