- 记一次 Istio ServiceEntry 的填坑之路_wx634146db7c01d的技术博客_51CTO博客
- Istio 访问 ServiceEntry host 无法解析_istio could not resolve host-CSDN博客
- Istio资源以及和Kubernetes资源扭转关系 - 知乎
问题现象:
可能是因为升级coredns,为 egress.ollama.ai 定义 ServiceEntry,不配置VirtualService时 ,通过 Sidecar 直接调用的外部服务,但是必须以ai结尾,不知道原因?测试,是因为自定义的以ai结尾的几个域名在外网可用,这时反而可以使用内网的端口。测试现象如下:(istioctl proxy-config都对,感觉是coredns造成的问题)
[root@k8s-master01 yaml]# istioctl proxy-config all ragflow-server-bf76b44b8-m6t2j -n ragflow |grep ubuntu
cluster/outbound|11434||ubuntu.ai ubuntu.ai 11434 - outbound EDS
route/11434 ubuntu.ai:11434 ubuntu.ai /*
endpoint/192.168.31.2:11434 HEALTHY outbound|11434||ubuntu.ai
[root@k8s-master01 yaml]# istioctl proxy-config all ragflow-server-bf76b44b8-m6t2j -n ragflow |grep ubuntu
cluster/outbound|11434||ubuntu.bi ubuntu.bi 11434 - outbound EDS
route/11434 ubuntu.bi:11434 ubuntu.bi /*
endpoint/192.168.31.2:11434 HEALTHY outbound|11434||ubuntu.bi
---
# curl -sSL -o /dev/null -D - http://ubuntu.ai:11434 --->OK,原因是ubuntu.ai外网可用
HTTP/1.1 200 OK
# curl -sSL -o /dev/null -D - http://ubuntu.noai:11434 --->NOK,外网没有ubuntu.noai这个域名
curl: (6) Could not resolve host:ubuntu.noai
1、kind: VirtualService定义gateways:假如不在一个命名空间时的格式。Version Istio 1.24.1 apiVersion: networking.istio.io/v1
gateways:
- some-config-namespace/my-gateway # can omit the namespace if gateway is in same namespace as virtual service.
2、