minikube/deploy/docker/localkube-dind
O'meid a465350b9e
localkube-dind: Fix readme.
Fix the image name from localkube-image to localkube-dind-image in the readme.
2017-12-01 13:49:35 +11:00
..
Dockerfile Added sshd, kubeconfig and insecure-serving flags to localkube for dind image 2017-09-28 16:05:51 -07:00
README.md localkube-dind: Fix readme. 2017-12-01 13:49:35 +11:00
dindnet Add additional localkube-dind docker image. 2017-08-16 15:30:07 -07:00
start.sh Added sshd, kubeconfig and insecure-serving flags to localkube for dind image 2017-09-28 16:05:51 -07:00

README.md

Run localkube in a docker container (experimental)

Warning: This is experimental code at the moment.

How to build

From root minikube/ directory run:

$ make localkube-dind-image #optional env-vars: TAG=LOCALKUBE_VERSION REGISTRY=gcr.io/k8s-minikube

How to run

Linux
$ docker run -it \
  --privileged \
  -p 127.0.0.1:8080:8080 \
  -v /boot:/boot \
  -v /lib/modules:/lib/modules \
  gcr.io/k8s-minikube/localkube-dind-image:v1.7.0 \
  /start.sh

Then to setup kubectl to use this cluster:

kubectl config set-cluster localkube-image --server=http://127.0.0.1:8080 --api-version=v1
kubectl config set-context localkube-image --cluster=localkube-image
kubectl config use-context localkube-image

Now kubectl should be configured to properly access your local k8s environment