Skip to content

Local Development

Mike Cutalo edited this page Aug 6, 2020 · 2 revisions

Docker development and Kubernetes

When developing and running locally in docker, clutch depends on the presence of a kubeconfig to bootstrap its self with Kubernetes clusters to operate against.

In order to do this, you must mount in a kubeconfig, the example below shows that we are mounting in our kubeconfig from our home directory. This is the default path that kubectl uses.

docker run --rm -p 8080:8080 -v ~/.kube/config:/kubeconfig -e KUBECONFIG=/kubeconfig lyft/clutch:latest

Note: If your kubeconfig references file paths for information such as a cluster CA, you will also need to mount and adjust those file paths.

Clone this wiki locally