Skip to content

Commit 614d472

Browse files
committed
doc(DSR): add /etc/iproute2/rt_tables caveat
1 parent 1909918 commit 614d472

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

daemonset/kubeadm-kuberouter-all-features-dsr.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ spec:
9191
- name: run
9292
mountPath: /var/run/docker.sock
9393
readOnly: true
94+
- name: rt_tables
95+
mountPath: /etc/iproute2/rt_tables
96+
readOnly: false
9497
- name: xtables-lock
9598
mountPath: /run/xtables.lock
9699
readOnly: false
@@ -140,6 +143,9 @@ spec:
140143
- name: run
141144
hostPath:
142145
path: /var/run/docker.sock
146+
- name: rt_tables
147+
hostPath:
148+
path: /etc/iproute2/rt_tables
143149
- name: kube-router-cfg
144150
configMap:
145151
name: kube-router-cfg

docs/dsr.md

+7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Requirements:
2727
* `hostIPC: true` must be set for the pod
2828
* `hostPID: true` must be set for the pod
2929
* The container runtime socket must be mounted into the kube-router pod via a `hostPath` volume mount.
30+
* `/etc/iproute2/rt_tables` must be read/write mounted into the kube-router pod via a `hostPath` volume mount.
3031
* A pod network that allows for IPIP encapsulated traffic. The most notable exception to this is that Azure does not
3132
transit IPIP encapsulated packets on their network. In this scenario, the end-user may be able to get around this
3233
issue by enabling FoU (`--overlay-encap=fou`) and full overlay networking (`--overlay-type=full`) options in
@@ -85,6 +86,9 @@ spec:
8586
- name: run
8687
hostPath:
8788
path: /var/run/docker.sock
89+
- name: rt_tables
90+
hostPath:
91+
path: /etc/iproute2/rt_tables
8892
...
8993
containers:
9094
- name: kube-router
@@ -94,6 +98,9 @@ spec:
9498
- name: run
9599
mountPath: /var/run/docker.sock
96100
readOnly: true
101+
- name: rt_tables
102+
mountPath: /etc/iproute2/rt_tables
103+
readOnly: false
97104
...
98105
```
99106

0 commit comments

Comments
 (0)