
我有一个CoreFile的配置是这样的:
.:53 {
errors
health {
lameduck 5s
}
ready
kubernetes cluster.local in-addr.arpa ip6.arpa {
pods insecure
fallthrough in-addr.arpa ip6.arpa
ttl 30
}
prometheus :9153
forward . /etc/resolv.conf {
max_concurrent 1000
}
cache 30
loop
reload
loadbalance
}
我想让我所有的pods能够将myapi.local
解析到一个特定的IP(192.168.49.2),有没有什么简单的方法来实现这个,就像我可以用操作系统的host文件一样。