参考 andyshinn/docker-dnsmasq , 配置文件可以:
no-resolv
all-servers
{% for host in groups['kube_master'] %}
server={{ host }}#{{ coredns_port }}
{% endfor %}
#log-queries
...
command:
- dnsmasq
- -d
- --conf-file=/etc/dnsmasq/dnsmasq.conf
registry.aliyuncs.com/zhangguanzhang/dnsmasq:2.83
相关链接: