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
Copy file name to clipboardExpand all lines: README.md
+17-26Lines changed: 17 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,12 @@
1
-
# KubernetesOnWindows
1
+
# Welcome to the sig-windows Development Environment !
2
2
3
3
This is a fully batteries-included development for Windows on Kubernetes, including:
4
4
- Vagrant file for launching a two-node cluster
5
5
- the latest containerd
6
6
- NetworkPolicy support for Windows and Linux provided by [Antrea](https://antrea.io)
7
7
- Windows binaries for kube-proxy.exe and kubelet.exe that are fully built from source (K8s main branch)
8
-
9
-
Soon to be integrated into kubernetes-sigs/windows-dev-environment!
10
-
11
-
We welcome contributions. We'd especially love to see:
12
-
- More CNI providers (calico, cillium, ...)
13
-
- More Container Runtime ideas
14
-
- More vagrant infrastructures (Vsphere, VMWare Fusion, EC2, GCE, and so on)
15
-
- E2Es or scripts which exercise privileged containers or LDAP / AD
16
-
- CSI or other storage/volume add-ons
17
-
- other ideas!
18
-
8
+
- kubeadm installation that can put the bleeding edge linux control plane in place, so you can test new featuers like priveliged containers
9
+
19
10
# Goal
20
11
21
12
Our goal is to make Windows ridiculously easy to contribute to, play with, and learn about for anyone interested
@@ -26,7 +17,7 @@ viable alternative to Linux thanks to the recent introduction of Windows HostPro
26
17
27
18
- vagrant
28
19
- vagrant reload plugin
29
-
- some vagrant provider (we only have virtualbox automated here, but these recipes have been used with others, like HyperV)
20
+
- some vagrant provider (we only have virtualbox automated here, but these recipes have been used with others, like HyperV and Fusion).
30
21
31
22
# Lets run it!
32
23
@@ -36,25 +27,21 @@ Ok let's get started...
36
27
37
28
For the happy path, just:
38
29
30
+
0) Start docker so that you can build k8s from source as needed.
39
31
1) Install vagrant, and then vagrant-reload
40
32
```
41
33
vagrant plugin install vagrant-reload
42
34
```
43
-
44
-
2) Modify cpu/memory. We advise 8GB RAM for Windows. If your system has less than 16GB RAM, adjust the `Vagrantfile`:
45
-
```
46
-
winw1.vm.provider :virtualbox do |vb|
47
-
vb.memory = 4096
48
-
```
49
-
change the `4096` to `2048`.
50
-
35
+
2) Modify cpu/memory in the variables.yml file. We recommend 4 cores 8G+ for your windows node if you can spare it, and 2 cores 8G for your linux node as well.
36
+
51
37
## 2) Run it!
52
38
53
39
There are two use cases for these Windows K8s dev environments: Quick testing, and testing K8s from source.
54
40
55
-
## 3) Testing from source? make
41
+
## 3) Testing from source? make all
56
42
57
-
To test from source, run `make all`. This will
43
+
To test from source, run `vagrant destroy --force ; make all`. This will
44
+
- destroy your existing dev environment
58
45
- clone down K8s from GitHub. If you have the k/k repo locally, you can `make path=path_to_k/k all`
59
46
- compile the K8s proxy and kubelet
60
47
- inject them into the Vagrant Windows environment at the C:/k/bin/ location
@@ -76,6 +63,8 @@ AND THAT'S IT! Your machines should come up in a few minutes...
76
63
## IMPORTANT
77
64
Do not log into the VMs until the provisioning is done. That is especially true for Windows because it will prevent the reboots.
78
65
66
+
## Other notes
67
+
79
68
If you still have an old instance of these VMs running for the same dir:
80
69
```
81
70
vagrant destroy -f && vagrant up
@@ -114,7 +103,9 @@ To run a *command* on the Windows boxes without actually using the UI, you can u
This guide is based on [this very nice Vagrantfile](https://gist.github.com/danielepolencic/ef4ddb763fd9a18bf2f1eaaa2e337544) and this very good [guide on how to install Kubernetes on Ubuntu Focal (20.04)](https://github.com/mialeevs/kubernetes_installation).
120
-
The Windows part is informed by this [guide on how to install Docker on Win Server 2019](https://www.hostafrica.co.za/blog/new-technologies/how-to-install-docker-on-linux-and-windows/#win), [this guide on adding Windows nodes](https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes/), and [this guide](https://www.hostafrica.co.za/blog/new-technologies/install-kubernetes-cluster-windows-server-worker-nodes/) on how to install Kubernetes on Win Server 2019.
108
+
- This guide is based on [this very nice Vagrantfile](https://gist.github.com/danielepolencic/ef4ddb763fd9a18bf2f1eaaa2e337544)
109
+
- this very good [guide on how to install Kubernetes on Ubuntu Focal (20.04)](https://github.com/mialeevs/kubernetes_installation).
110
+
- The Windows part is informed by this [guide on how to install Docker on Win Server 2019](https://www.hostafrica.co.za/blog/new-technologies/how-to-install-docker-on-linux-and-windows/#win), [this guide on adding Windows nodes](https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/adding-windows-nodes/), and [this guide](https://www.hostafrica.co.za/blog/new-technologies/install-kubernetes-cluster-windows-server-worker-nodes/) on how to install Kubernetes on Win Server 2019.
111
+
- We've also borrowed ideas from cluster api, kubeadm, and the antrea project too bootstrap how we manage CNI and containerd support.
0 commit comments