Includes gcloud cli and kubectl cli. Used for CI/CD.
513
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
Content type
Image
Digest
Size
161.2 MB
Last updated
about 5 years ago
docker pull luuhai48/gcloud-tool