Skip to content

Commit

Permalink
doc(DSR): add /etc/iproute2/rt_tables caveat
Browse files Browse the repository at this point in the history
  • Loading branch information
aauren committed Mar 19, 2024
1 parent 1909918 commit 614d472
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions daemonset/kubeadm-kuberouter-all-features-dsr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ spec:
- name: run
mountPath: /var/run/docker.sock
readOnly: true
- name: rt_tables
mountPath: /etc/iproute2/rt_tables
readOnly: false
- name: xtables-lock
mountPath: /run/xtables.lock
readOnly: false
Expand Down Expand Up @@ -140,6 +143,9 @@ spec:
- name: run
hostPath:
path: /var/run/docker.sock
- name: rt_tables
hostPath:
path: /etc/iproute2/rt_tables
- name: kube-router-cfg
configMap:
name: kube-router-cfg
Expand Down
7 changes: 7 additions & 0 deletions docs/dsr.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Requirements:
* `hostIPC: true` must be set for the pod
* `hostPID: true` must be set for the pod
* The container runtime socket must be mounted into the kube-router pod via a `hostPath` volume mount.
* `/etc/iproute2/rt_tables` must be read/write mounted into the kube-router pod via a `hostPath` volume mount.
* A pod network that allows for IPIP encapsulated traffic. The most notable exception to this is that Azure does not
transit IPIP encapsulated packets on their network. In this scenario, the end-user may be able to get around this
issue by enabling FoU (`--overlay-encap=fou`) and full overlay networking (`--overlay-type=full`) options in
Expand Down Expand Up @@ -85,6 +86,9 @@ spec:
- name: run
hostPath:
path: /var/run/docker.sock
- name: rt_tables
hostPath:
path: /etc/iproute2/rt_tables
...
containers:
- name: kube-router
Expand All @@ -94,6 +98,9 @@ spec:
- name: run
mountPath: /var/run/docker.sock
readOnly: true
- name: rt_tables
mountPath: /etc/iproute2/rt_tables
readOnly: false
...
```

Expand Down

0 comments on commit 614d472

Please sign in to comment.