Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
ae5da89a
Commit
ae5da89a
authored
Sep 24, 2015
by
Eric Tune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct scratch guide re: bridge and iptables
Replace "eth0" with "cbr0" in "ip add" command, as reported by github user @kjvalencik. Update iptables command to match changes in #13348.
parent
284039c9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
scratch.md
docs/getting-started-guides/scratch.md
+2
-2
No files found.
docs/getting-started-guides/scratch.md
View file @
ae5da89a
...
@@ -476,7 +476,7 @@ because of how this is used later.
...
@@ -476,7 +476,7 @@ because of how this is used later.
1.
Set appropriate MTU
1.
Set appropriate MTU
-
`ip link set dev cbr0 mtu 1460`
(NOTE: the actual value of MTU will depend on your network environment)
-
`ip link set dev cbr0 mtu 1460`
(NOTE: the actual value of MTU will depend on your network environment)
1.
Add the clusters network to the bridge (docker will go on other side of bridge).
1.
Add the clusters network to the bridge (docker will go on other side of bridge).
-
e.g.
`ip addr add $NODE_X_BRIDGE_ADDR dev
eth
0`
-
e.g.
`ip addr add $NODE_X_BRIDGE_ADDR dev
cbr
0`
1.
Turn it on
1.
Turn it on
-
e.g.
`ip link set dev cbr0 up`
-
e.g.
`ip link set dev cbr0 up`
...
@@ -485,7 +485,7 @@ other, then you may need to do masquerading just for destination IPs outside
...
@@ -485,7 +485,7 @@ other, then you may need to do masquerading just for destination IPs outside
the cluster network. For example:
the cluster network. For example:
```
sh
```
sh
iptables
-
w
-t
nat
-A
POSTROUTING
-o
eth0
-j
MASQUERADE
\!
-d
${
CLUSTER_SUBNET
}
iptables
-
t
nat
-A
POSTROUTING
!
-d
${
CLUSTER_SUBNET
}
-m
addrtype
!
--dst-type
LOCAL
-j
MASQUERADE
```
```
This will rewrite the source address from
This will rewrite the source address from
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment