Skip to content

Commit

Permalink
docs: add description about relation of cidr and static ip allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed Nov 20, 2019
1 parent 66ec073 commit 446999f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ If you want to enable IPv6 on default subnet and node subnet, please apply https

## More Configuration

Kube-OVN will use subnet to manage pod ip address allocation, so the kube-controller-manager flag `cluster-cidr` will not take effect.
You can use `--default-cidr` flags below to config default Pod CIDR or create a new subnet with desired CIDR later.

### Controller Configuration

```bash
Expand Down
7 changes: 4 additions & 3 deletions docs/static-ip.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:

**Note**:

1. The address **SHOULD** be in the CIDR of related switch.
1. The address **SHOULD** be in the CIDR of related subnet.
2. The address **SHOULD NOT** conflict with addresses already allocated.
3. The static MAC address is optional.

Expand Down Expand Up @@ -65,5 +65,6 @@ spec:

1. The address **SHOULD** be in the CIDR of the related switch.
2. The address **SHOULD NOT** conflict with addresses already allocated.
3. If the `ip_pool` size is smaller than the replica count, some Pods will not start.
2. Care should be taken for scaling and updates to ensure there are addresses available for new Pods.
3. If the address size is larger than replica count, the unused address might be acquired by other Pods.
4. If the `ip_pool` size is smaller than the replica count, some Pods will not start.
5. Care should be taken for scaling and updates to ensure there are addresses available for new Pods.

0 comments on commit 446999f

Please sign in to comment.