You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 30, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: containers/kubernetes-helm/README.md
+23-26Lines changed: 23 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,35 +25,31 @@ You can adapt your own existing development container Dockerfile to support this
25
25
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`:
2. Second, update `devcontainer.json` to force the Docker extension to be installed inside the container instead of locally. From `.devcontainer/devcontainer.json`:
43
-
44
-
```json
45
-
"settings": {
46
-
"remote.extensionKind": {
47
-
"ms-azuretools.vscode-docker": "workspace"
48
-
}
49
-
},
50
-
```
51
-
52
-
3. Next, update your Dockerfile so the default shell is `bash`, and then add a script to automatically swap out `localhost` for `host.docker.internal` in the container's copy of the Kubernetes config and (optionally) Minikube certificates to `.bashrc`. From `.devcontainer/Dockerfile`:
50
+
2. Next, update your Dockerfile so the default shell is `bash`, and then add a script to automatically swap out `localhost` for `host.docker.internal` in the container's copy of the Kubernetes config and (optionally) Minikube certificates to `.bashrc`. From `.devcontainer/Dockerfile`:
53
51
54
52
```Dockerfile
55
-
ENV SHELL /bin/bash
56
-
57
53
RUN echo '\n\
58
54
if [ "$SYNC_LOCALHOST_KUBECONFIG" == "true" ]; then\n\
59
55
mkdir -p $HOME/.kube\n\
@@ -73,7 +69,7 @@ You can adapt your own existing development container Dockerfile to support this
73
69
>> $HOME/.bashrc
74
70
```
75
71
76
-
4. Finally, update your Dockerfile to install all of the needed CLIs in the container. From `.devcontainer/Dockerfile`:
72
+
3. Finally, update your Dockerfile to install all of the needed CLIs in the container. From `.devcontainer/Dockerfile`:
77
73
78
74
```Dockerfile
79
75
RUN apt-get update \
@@ -93,7 +89,7 @@ You can adapt your own existing development container Dockerfile to support this
* If you want to **disable sync'ing** local Kubernetes config / Minikube certs into the container, remove `"-e", "SYNC_LOCALHOST_KUBECONFIG=true",` from `runArgs` in `.devcontainer/devcontainer.json`.
111
+
112
+
* If you want to **disable sync'ing** local Kubernetes config / Minikube certs into the container, remove `"SYNC_LOCALHOST_KUBECONFIG": "true",` from `remoteEnv` in `.devcontainer/devcontainer.json`.
117
113
118
114
See the section below for your operating system for more detailed setup instructions.
119
115
@@ -140,6 +136,7 @@ See the section below for your operating system for more detailed setup instruct
140
136
7. Finally, press <kbd>F1</kbd> and run **Remote-Containers: Reopen Folder in Container** to start using the definition.
141
137
142
138
8. [Optional] If you want to use [Helm](https://helm.sh), open a VS Code terminal and run:
0 commit comments