Sign inSign up

luuhai48/gcloud-tool

By luuhai48

Updated about 5 years ago

Includes gcloud cli and kubectl cli. Used for CI/CD.

Image
0

513

luuhai48/gcloud-tool repository overview

Generate create a IAM service account with Kubernetes admin permission copy json and create SERVICE_ACCOUNT variable in Bitbucket:

Example Pipeline step:

- step:
    name: Kubectl deploy
    image: luuhai48/gcloud-tool:latest
    script:
      - echo $SERVICE_ACCOUNT > service_account.json
      - gcloud auth activate-service-account --key-file service_account.json
      - gcloud container clusters get-credentials cluster-1 --zone=us-central1-a --project gcloud-project-id
      - kubectl get pods

Tag summary

Content type

Image

Digest

Size

161.2 MB

Last updated

about 5 years ago

docker pull luuhai48/gcloud-tool