Sign inSign up

skazuki/alpine-gcloud-kubectl

By skazuki

•Updated almost 4 years ago

Lightweight kubectl docker image on alpine with gcloud

Image
0

319

skazuki/alpine-gcloud-kubectl repository overview

⁠alpine-gcloud-kubectl

Lightweight kubectl docker image on alpine with gcloud

⁠gcloud

Google Cloud SDK 410.0.0
bq 2.0.81
bundled-python3-unix 3.9.12
core 2022.11.11
gcloud-crc32c 1.0.0
gke-gcloud-auth-plugin 0.4.0
gsutil 5.16

⁠kubectl

version: 1.22.14

⁠How to use

create docker-compose.yml:

version: "3.9"
services:
  kubectl:
    image: skazuki/alpine-gcloud-kubectl
    volumes:
      - .:/root/credentials
    env_file: .env

set .env:

[email protected]
GCP_KEY_FILE=example_gcp_key.json
GCP_PROJECT=example_project_id

then in container:

gcloud auth activate-service-account ${GCP_ACCOUNT} --key-file=/root/credentials/${GCP_KEY_FILE} --project ${GCP_PROJECT}

Tag summary

Content type

Image

Digest

sha256:e5599d085…

Size

553.3 MB

Last updated

almost 4 years ago

docker pull skazuki/alpine-gcloud-kubectl