Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: set correct pod network CIDR in 13-configure-pod-networking.md #347

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions docs/13-configure-pod-networking.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,38 @@ We chose to use CNI - [weave](https://www.weave.works/docs/net/latest/kubernetes

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.

Deploy weave network. Run only once on the `controlplane01` node. You may see a warning, but this is OK.
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
to match the [CIDR we picked](01-prerequisites.md#pod-network) at the beginning for our POD network - ie. '10.244.0.0/16'.

[//]: # (host:controlplane01)

On `controlplane01`

Download the weave manifest:

```bash
curl -LO "https://github.com/weaveworks/weave/releases/download/v2.8.1/weave-daemonset-k8s-1.11.yaml"
```

Manually edit the manifest and set the correct POD network CIDR via IPALLOC_RANGE environment variable:

```
vim weave-daemonset-k8s-1.11.yaml

...
containers:
- name: weave
env:
...
- name: IPALLOC_RANGE
value: 10.244.0.0/16
...
```

Deploy weave network. Run only once on the `controlplane01` node. You may see a warning, but this is OK:

```bash
kubectl apply -f "https://github.com/weaveworks/weave/releases/download/v2.8.1/weave-daemonset-k8s-1.11.yaml"
kubectl apply -f weave-daemonset-k8s-1.11.yaml

```

Expand Down