devops-works / docker-kubegcp

Repository from Github https://github.comdevops-works/docker-kubegcpRepository from Github https://github.comdevops-works/docker-kubegcp

kubegcp

kubegcp is a simple Docker image bundling kubectl and gcloud together in order to query a GKE cluster within Docker.

Usage

Best way to use it is to mount your Kubernetes and Gcloud client configuration, read-only, on the container to authenticate with the same profiles than locally.

Examples

Expose a Kubernetes service locally from Docker, using local credentials

docker run -it --rm --name remote-elastic \
  -v ~/.kube:/.kube/:ro \
  -v ~/.config/gcloud:/.config/gcloud/:ro \
  devopsworks/kubegcp \
  port-forward -n MY-NAMESPACE svc/elasticsearch 9200:9200 --context MY-KUBE-CONTEXT --address='0.0.0.0'

TODO

  • Try to reduce image size by removing unnecessary libraries

About


Languages

Language:Dockerfile 100.0%