Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonglil/auth-gke
Get the credentials for the GKE cluster using a GCP service account JSON credential
https://github.com/tonglil/auth-gke
drone drone-plugin gcloud gcloud-sdk gcp gke google-cloud google-cloud-platform kubernetes
Last synced: about 1 month ago
JSON representation
Get the credentials for the GKE cluster using a GCP service account JSON credential
- Host: GitHub
- URL: https://github.com/tonglil/auth-gke
- Owner: tonglil
- Created: 2017-08-30T16:01:40.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2024-06-18T02:29:12.000Z (8 months ago)
- Last Synced: 2024-11-11T09:17:37.807Z (3 months ago)
- Topics: drone, drone-plugin, gcloud, gcloud-sdk, gcp, gke, google-cloud, google-cloud-platform, kubernetes
- Language: Shell
- Homepage: https://hub.docker.com/r/tonglil/auth-gke/
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# auth-gke
Get the credentials for the GKE cluster using a GCP service account JSON credential.
Based on https://github.com/tonglil/auth-gcloud.
## Usage
```sh
docker run \
-e TOKEN="$(cat service-account.json)" \
-e PROJECT=my-project \
-e LOCATION=us-central1-b \
-e CLUSTER=my-cluster \
tonglil/auth-gke
```## Example
### Drone 1+
```yml
pipeline:
gke-actions:
image: tonglil/auth-gke
environment:
PROJECT: my-project
LOCATION: us-central1-b # zone or region
CLUSTER: my-cluster
commands:
- auth-gke
- kubectl ...
secrets: [google_credentials]
```### Drone 0.5+
Expand
```yml
steps:
- name: gke-actions
image: tonglil/auth-gke
environment:
PROJECT: my-project
LOCATION: us-central1-b # zone or region
CLUSTER: my-cluster
TOKEN:
from_secret: google_credentials
commands:
- auth-gke
- kubectl ...
```## Releasing
Use the base image's `gcloud` version number as the tag:
```
make pull
make version
```## Changelog
See release notes: https://github.com/tonglil/auth-gke/releases