Skip to content

Commit e2444ce

Browse files
authored
Merge pull request #41597 from windsonsea/masqip
improve ip-masq-agent.md slightly
2 parents 515cd45 + 86363bb commit e2444ce

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

content/en/docs/tasks/administer-cluster/ip-masq-agent.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ The `ip-masq-agent` configures iptables rules to hide a pod's IP address behind
1818
node's IP address. This is typically done when sending traffic to destinations outside the
1919
cluster's pod [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) range.
2020

21-
### **Key Terms**
21+
### Key Terms
2222

23-
* **NAT (Network Address Translation)**
23+
* **NAT (Network Address Translation)**:
2424
Is a method of remapping one IP address to another by modifying either the source and/or
2525
destination address information in the IP header. Typically performed by a device doing IP routing.
26-
* **Masquerading**
26+
* **Masquerading**:
2727
A form of NAT that is typically used to perform a many to one address translation, where
2828
multiple source IP addresses are masked behind a single address, which is typically the
2929
device doing the IP routing. In Kubernetes this is the Node's IP address.
30-
* **CIDR (Classless Inter-Domain Routing)**
30+
* **CIDR (Classless Inter-Domain Routing)**:
3131
Based on the variable-length subnet masking, allows specifying arbitrary-length prefixes.
3232
CIDR introduced a new method of representation for IP addresses, now commonly known as
3333
**CIDR notation**, in which an address or routing prefix is written with a suffix indicating
3434
the number of bits of the prefix, such as 192.168.2.0/24.
35-
* **Link Local**
35+
* **Link Local**:
3636
A link-local address is a network address that is valid only for communications within the
3737
network segment or the broadcast domain that the host is connected to. Link-local addresses
3838
for IPv4 are defined in the address block 169.254.0.0/16 in CIDR notation.
@@ -94,6 +94,7 @@ to your cluster.
9494
<!-- steps -->
9595

9696
## Create an ip-masq-agent
97+
9798
To create an ip-masq-agent, run the following kubectl command:
9899

99100
```shell
@@ -107,12 +108,12 @@ agent to run on.
107108
kubectl label nodes my-node node.kubernetes.io/masq-agent-ds-ready=true
108109
```
109110

110-
More information can be found in the ip-masq-agent documentation [here](https://github.com/kubernetes-sigs/ip-masq-agent)
111+
More information can be found in the ip-masq-agent documentation [here](https://github.com/kubernetes-sigs/ip-masq-agent).
111112

112113
In most cases, the default set of rules should be sufficient; however, if this is not the case
113114
for your cluster, you can create and apply a
114115
[ConfigMap](/docs/tasks/configure-pod-container/configure-pod-configmap/) to customize the IP
115-
ranges that are affected. For example, to allow
116+
ranges that are affected. For example, to allow
116117
only 10.0.0.0/8 to be considered by the ip-masq-agent, you can create the following
117118
[ConfigMap](/docs/tasks/configure-pod-container/configure-pod-configmap/) in a file called
118119
"config".
@@ -128,7 +129,7 @@ resyncInterval: 60s
128129
```
129130
{{< /note >}}
130131
131-
Run the following command to add the config map to your cluster:
132+
Run the following command to add the configmap to your cluster:
132133
133134
```shell
134135
kubectl create configmap ip-masq-agent --from-file=config --namespace=kube-system
@@ -160,4 +161,3 @@ nonMasqueradeCIDRs:
160161
resyncInterval: 60s
161162
masqLinkLocal: true
162163
```
163-

0 commit comments

Comments
 (0)