update at 2024-05-14 11:42:17

pull/158/head
roc 2024-05-14 11:42:17 +08:00
parent bb1a06da64
commit 14b87a620a
1 changed files with 3 additions and 4 deletions

View File

@ -12,7 +12,7 @@ dnsmasq
└── kustomization.yaml
```
## 准备 dnsmasq 配置
## 配置 dnsmasq.conf
<FileBlock showLineNumbers title="config/dnsmasq.conf" file="home-network/dnsmasq.conf" />
@ -21,15 +21,14 @@ dnsmasq
* `dhcp-option=option:router` 指定内网设备的默认网关,即当前主路由的内网静态 IP 地址。
* `dhcp-option=option:dns-server` 指定内网设备自动获取的 DNS 地址,通常写 dnsmasq 自身的地址,即主路由的内网静态 IP 地址,不过由于我用了透明代理,希望内网设备直接用 PPPoE 拨号获得的运营商的 DNS 地址(好处是如果透明代理故障,停掉流量拦截规则后,内网设备也能正常从运营商 DNS 解析域名)。
## 准备 daemonset.yaml
## 配置 daemonset.yaml
<FileBlock showLineNumbers title="daemonset.yaml" file="home-network/dnsmasq.yaml" />
* 注意修改账号密码,本例使用 `roc` 作为账号名,`111111` 作为密码。
* 将要共享的目录通过 hostPath 挂载进去,本例挂载和共享 `//data` 目录。
## 准备 kustomization.yaml
## 配置 kustomization.yaml
```yaml title="kustomization.yaml"
apiVersion: kustomize.config.k8s.io/v1beta1