Skip to content

Commit 251ba44

Browse files
committed
fix: set correct pod CIDR in 13-configure-pod-networking.md
1 parent 25a1f2b commit 251ba44

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

docs/13-configure-pod-networking.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,38 @@ We chose to use CNI - [weave](https://www.weave.works/docs/net/latest/kubernetes
99

1010
Some of you may have noticed the announcement that WeaveWorks is no longer trading. At this time, this does not mean that Weave is not a valid CNI. WeaveWorks software has always been and remains to be open source, and as such is still useable. It just means that the company is no longer providing updates. While it continues to be compatible with Kubernetes, we will continue to use it as the other options (e.g. Calico, Cilium) require far more configuration steps.
1111

12-
Deploy weave network. Run only once on the `controlplane01` node. You may see a warning, but this is OK.
12+
Weave sets its [default network CIDR](https://github.com/weaveworks/weave/blob/master/site/kubernetes/kube-addon.md#-changing-configuration-options) to '10.32.0.0/12', which means we need to modify it before the installation
13+
to match the [CIDR we picked](01-prerequisites.md#pod-network) at the beginning for our POD network - ie. '10.244.0.0/16'.
1314

1415
[//]: # (host:controlplane01)
1516

1617
On `controlplane01`
1718

19+
Download the weave manifest:
20+
21+
```bash
22+
curl -LO "https://github.com/weaveworks/weave/releases/download/v2.8.1/weave-daemonset-k8s-1.11.yaml"
23+
```
24+
25+
Manually edit the manifest and set the correct POD network CIDR via IPALLOC_RANGE environment variable:
26+
27+
```
28+
vim weave-daemonset-k8s-1.11.yaml
29+
30+
...
31+
containers:
32+
- name: weave
33+
env:
34+
...
35+
- name: IPALLOC_RANGE
36+
value: 10.244.0.0/16
37+
...
38+
```
39+
40+
Deploy weave network. Run only once on the `controlplane01` node. You may see a warning, but this is OK:
41+
1842
```bash
19-
kubectl apply -f "https://github.com/weaveworks/weave/releases/download/v2.8.1/weave-daemonset-k8s-1.11.yaml"
43+
kubectl apply -f weave-daemonset-k8s-1.11.yaml
2044

2145
```
2246

0 commit comments

Comments
 (0)