Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit dfc2194

Browse files
authored
Small README updates
1 parent bc044c9 commit dfc2194

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

containers/kubernetes-helm/README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,16 @@ You can adapt your own existing development container Dockerfile to support this
4949
"-v", "/var/run/docker.sock:/var/run/docker.sock",
5050
"-v", "$HOME/.kube:/root/.kube-localhost"]
5151
```
52-
52+
53+
If you also want to sync reuse the contents of your `.minikube` folder, just add a mount for this directory as well:
54+
55+
```json
56+
"runArgs": ["-e", "SYNC_LOCALHOST_KUBECONFIG=true",
57+
"-v", "/var/run/docker.sock:/var/run/docker.sock",
58+
"-v", "$HOME/.kube:/root/.kube-localhost",
59+
"-v", "$HOME/.minikube:/root/.minikube-localhost"]
60+
```
61+
5362
3. Update `.bashrc` to automatically swap out localhost for host.docker.internal in a container copy of the Kubernetes config and optionally Minikube certificates if the volume is enabled. From `.devcontainer/Dockerfile`:
5463

5564
```Dockerfile
@@ -155,7 +164,11 @@ Follow the steps below for your operating system to use the definition.
155164

156165
6. After following step 2 or 3, the contents of the `.devcontainer` folder in your project can be adapted to meet your needs.
157166

158-
7. Open `.devcontainer/devcontainer.json` and uncomment the minikube volume binding.
167+
7. Open `.devcontainer/devcontainer.json` and uncomment/add this line to `runArgs` array:
168+
169+
```json
170+
"--mount", "type=bind,source=${env:HOME}${env:USERPROFILE}/.minikube,target=/root/.minikube-localhost"
171+
```
159172

160173
8. Finally, press <kbd>F1</kbd> and run **Remote-Containers: Reopen Folder in Container** to start using the definition.
161174

0 commit comments

Comments
 (0)