Skip to content

Commit 1ba9380

Browse files
authored
Update nodelocaldns.md
use ",__PILLAR__DNS__SERVER__" as old pattern instead of "__PILLAR__DNS__SERVER__" when use ipvs mode
1 parent c2f0ae3 commit 1ba9380

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)