Skip to content

Commit c6da823

Browse files
authored
Merge pull request #34 from brenthosie/k8s-win-install
k8s install tutorial updates
2 parents 5b264b4 + 2f39066 commit c6da823

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

tutorials/1-setting-up-docker-and-kubernetes.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,21 @@ Before we get started, we're going to set up a local Kubernetes cluster and Dock
44

55
## Mac
66
### Installing Docker for Mac
7-
1) Visit the [Docker Desktop homepage](https://www.docker.com/products/docker-desktop)
7+
1) Visit the [Docker Desktop homepage](https://www.docker.com/products/docker-desktop).
88

99
2) Click `Download for Mac (Stable)` and install it.
1010

1111
### Enabling Kubernetes
12-
1) Click on Docker for Desktop in the menu bar, go to _Preferences_ -> _Kubernetes_ and click _Enable Kubernetes_ and _Apply & Restart_
12+
13+
**NOTE**: If you've ever exported a Kubernetes path, you'll have to combine that path with the path that Kubernetes expects the default config file to live at: `~/.kube/config` using a `:` between each path:
14+
15+
`export KUBECONFIG=<path-to-default-config.yaml>:<path-to-another-config.yaml>`
16+
17+
1) Click on Docker for Desktop in the menu bar, go to _Preferences_ -> _Kubernetes_ and click _Enable Kubernetes_. Click _show system containers (advanced)_, and _Apply & Restart_
1318

1419
2) Once Docker has completed installing Kubernetes you can test that it is working by using `kubectl`:
1520

16-
```
21+
```
1722
# Check that Kubernetes is running
1823
> kubectl get nodes
1924
NAME STATUS ROLES AGE VERSION
@@ -25,7 +30,21 @@ Docker version 18.05.0-ce, build f150324
2530
```
2631

2732
## Windows
28-
_Coming soon_
33+
### Installing Docker for Windows
34+
1) Ensure you are [ready to install](https://docs.docker.com/docker-for-windows/troubleshoot/#virtualization) Docker Desktop.
35+
36+
2) Visit the [Docker Desktop homepage](https://www.docker.com/products/docker-desktop).
37+
38+
3) Click `Download for Windows (Stable)` and install it.
39+
40+
- When you first run docker it's possible that you'll have to install the [Linux Kernel for Windows](https://docs.microsoft.com/en-us/windows/wsl/install-win10#step-4---download-the-linux-kernel-update-package). You are not required to do anything beyond installing the kernel and use powershell to set `wsl` version to **2**.
41+
42+
4) Launch Docker Desktop.
43+
44+
### Enabling Kubernetes
45+
1) Click the settings icon, then _Kubernetes_ and click _Enable Kubernetes_. Click _show system containers (advanced)_, and _Apply & Restart_
46+
47+
2) Once Kubernetes is active you should see that _Docker_ and _Kubernetes_ are active in the Docker Desktop application window.
2948

3049
## Linux
3150
_Coming soon_

0 commit comments

Comments
 (0)