Sign inSign up

evns/k8s-deployer

By evns

Updated over 9 years ago

Docker image for deploying to Kubernetes via kubectl and helm

Image
0

321

evns/k8s-deployer repository overview

Overview

Builds docker image containing kubectl and helm.

Build

docker-compose build

Usage

Mount Kubeconfig into container

If you have a kubeconfig file, you can mount it at /root/.kube/config where kubectl and helm pick it up.

E.g.

docker-compose run --rm k8s-deployer-mount "kubectl get no"
docker-compose run --rm k8s-deployer-mount "helm list"

Pass environment variables

Update the env vars in the docker-compose.yml to include the values present in your kubeconfig file.

E.g.

docker-compose run --rm k8s-deployer-env "kubectl get no"
docker-compose run --rm k8s-deployer-env "helm list"

Tag summary

Content type

Image

Digest

Size

25.6 MB

Last updated

over 9 years ago

docker pull evns/k8s-deployer