Skip to content

Commit eb9c87c

Browse files
authored
Merge pull request #4768 from PatrickLang/windows-build
Clarify how to build using or targetting Windows
2 parents 1a8f37b + 07b3089 commit eb9c87c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

contributors/devel/development.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,13 @@ environment. Recent Linux distros should work out-of-the-box.
115115
macOS ships with outdated BSD-based tools. We recommend installing [macOS GNU
116116
tools].
117117

118+
Developers with Windows machines have two choices available to run the needed tools:
119+
1. If you're using Windows 10 20h1, then you may [install WSL2] and your distro of choice
120+
2. If you're using a previous version of Windows, then set up a Linux VM with at least 8GB of memory and 60GB of disk space.
121+
122+
In either case, the same Linux development tools and Kubernetes source code are needed. Start your WSL2 distro or connect
123+
to your Linux VM and follow the steps below to install the required tools.
124+
118125
### make
119126

120127
Kubernetes local build system requires `make` command to be present in your corresponding development platform.
@@ -229,6 +236,12 @@ To build binaries for all platforms:
229236
make cross
230237
```
231238

239+
To build binaries for a specific platform, add `KUBE_BUILD_PLATFORMS=<os>/<arch>`. For example:
240+
241+
```sh
242+
make cross KUBE_BUILD_PLATFORMS=windows/amd64
243+
```
244+
232245
#### Install etcd
233246

234247
```sh
@@ -308,3 +321,4 @@ To check out code to work on, please refer to [this guide](/contributors/guide/g
308321
[kubernetes.io]: https://kubernetes.io
309322
[mercurial]: http://mercurial.selenic.com/wiki/Download
310323
[Build with Bazel]: sig-testing/bazel.md
324+
[install WSL2]: https://docs.microsoft.com/en-us/windows/wsl/wsl2-install

0 commit comments

Comments
 (0)