Skip to content

Commit 6ec9cf7

Browse files
authored
Merge pull request #29650 from likakuli/patch-1
Update nodelocaldns.md
2 parents b0f242c + 1ba9380 commit 6ec9cf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/zh/docs/tasks/administer-cluster/nodelocaldns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ If you are using the sample manifest from the previous point, this will require
174174
* If kube-proxy is running in IPVS mode:
175175

176176
``` bash
177-
sed -i "s/__PILLAR__LOCAL__DNS__/$localdns/g; s/__PILLAR__DNS__DOMAIN__/$domain/g; s/__PILLAR__DNS__SERVER__//g; s/__PILLAR__CLUSTER__DNS__/$kubedns/g" nodelocaldns.yaml
177+
sed -i "s/__PILLAR__LOCAL__DNS__/$localdns/g; s/__PILLAR__DNS__DOMAIN__/$domain/g; s/,__PILLAR__DNS__SERVER__//g; s/__PILLAR__CLUSTER__DNS__/$kubedns/g" nodelocaldns.yaml
178178
```
179179
In this mode, node-local-dns pods listen only on `<node-local-address>`. The node-local-dns interface cannot bind the kube-dns cluster IP since the interface used for IPVS loadbalancing already uses this address.
180180
`__PILLAR__UPSTREAM__SERVERS__` will be populated by the node-local-dns pods.

0 commit comments

Comments
 (0)