Update nodelocaldns.md

use ",_PILLAR__DNS__SERVER_" as old pattern instead of "_PILLAR__DNS__SERVER_" when use ipvs mode.
In English localization, the pattern is ",_PILLAR__DNS__SERVER_" but when in zh localization, the comma lost.
This commit is contained in:
likakuli 2021-09-09 19:18:57 +08:00 committed by GitHub
parent c2f0ae3f05
commit 1e4a57b563
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ NodeLocal DNSキャッシュは、クラスターード上でDNSキャッシ
* kube-proxyがIPVSモードで稼働中のとき:
``` bash
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
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
```
このモードでは、node-local-dns Podは`<node-local-address>`上のみで待ち受けます。node-local-dnsのインターフェースはkube-dnsのクラスターIPをバインドしません。なぜならばIPVSロードバランシング用に使われているインターフェースは既にこのアドレスを使用しているためです。
`__PILLAR__UPSTREAM__SERVERS__` はnode-local-dns Podにより生成されます。