@XIU2 嗯,发现后端 k8s service 没了,nginx dns 解析 service name 还是到老的 clusterIP
blackeeper
2022-12-02 09:58:21 +08:00
官方文档,默认就是 TTL 值,1.1.9 之前的版本 5 分钟
By default, nginx caches answers using the TTL value of a response. An optional valid parameter allows overriding it:
resolver 127.0.0.1 [::1]:5353 valid=30s; Before version 1.1.9, tuning of caching time was not possible, and nginx always cached answers for the duration of 5 minutes. @fighterhit