From f6b28259883ae04d67825da78c6692977099a132 Mon Sep 17 00:00:00 2001 From: Chuck Lantz Date: Wed, 22 May 2019 15:38:06 -0700 Subject: [PATCH] Update README.md --- containers/kubernetes-helm/README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/containers/kubernetes-helm/README.md b/containers/kubernetes-helm/README.md index 649e2dd51a..c4bd07b84a 100644 --- a/containers/kubernetes-helm/README.md +++ b/containers/kubernetes-helm/README.md @@ -25,18 +25,18 @@ You can adapt your own existing development container Dockerfile to support this 1. First, update your `devcontainer.json` to forward the local Docker socket and mount the local `.kube` folder in the container so its contents can be reused. From `.devcontainer/devcontainer.json`: ```json - "runArgs": ["-e", "SYNC_LOCALHOST_KUBECONFIG=true", - "-v", "/var/run/docker.sock:/var/run/docker.sock", - "-v", "$HOME/.kube:/root/.kube-localhost"] + "runArgs": ["-e", "SYNC_LOCALHOST_KUBECONFIG=true", + "-v", "/var/run/docker.sock:/var/run/docker.sock", + "-v", "$HOME/.kube:/root/.kube-localhost"] ``` If you also want to reuse your Minikube certificates, just add a mount for your local `.minikube` folder as well: ```json - "runArgs": ["-e", "SYNC_LOCALHOST_KUBECONFIG=true", - "-v", "/var/run/docker.sock:/var/run/docker.sock", - "-v", "$HOME/.kube:/root/.kube-localhost", - "-v", "$HOME/.minikube:/root/.minikube-localhost"] + "runArgs": ["-e", "SYNC_LOCALHOST_KUBECONFIG=true", + "-v", "/var/run/docker.sock:/var/run/docker.sock", + "-v", "$HOME/.kube:/root/.kube-localhost", + "-v", "$HOME/.minikube:/root/.minikube-localhost"] ``` 2. Second, update your Dockerfile so the default shell is `bash`, and update the `.bashrc` script to automatically swap out `localhost` for `host.docker.internal` in the container's copy of the Kubernetes config and (optionally) Minikube certificates. From `.devcontainer/Dockerfile`: