Skip to content

Commit 4f669fd

Browse files
authored
Merge pull request #27815 from prameshj/patch-6
Fix sed command for NodeLocalDNS yaml in IPVS mode.
2 parents 7066271 + 9d84de7 commit 4f669fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

8181
``` bash
82-
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
82+
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
8383
```
8484
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.
8585
`__PILLAR__UPSTREAM__SERVERS__` will be populated by the node-local-dns pods.

0 commit comments

Comments
 (0)