An open API service indexing awesome lists of open source software.

https://github.com/devops-works/docker-kubegcp


https://github.com/devops-works/docker-kubegcp

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# 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