istio: After upgrade to Istio 1.23.2 static declared DNS name in ServiceEntries are not resolvable
Is this the right place to submit this?
- This is not a security vulnerability or a crashing bug
- This is not a question about how to use Istio
Bug Description
After upgrading to istio 1.23.2 I have a issue with DNS resolution from Service Entries. That was working in 1.22.5.
I have following Service Entry:
apiVersion: networking.istio.io/v1
kind: ServiceEntry
metadata:
name: elasticsearch-trading.tcp.svc.pbe.dev
namespace: istio-egress
spec:
endpoints:
- address: 10.54.0.116
hosts:
- elasticsearch-trading.tcp.svc.pbe.dev
location: MESH_EXTERNAL
ports:
- name: elasticsearch
number: 9200
protocol: HTTP
resolution: STATIC
That’s what I’ve got inside the pod from istio mesh:
$ curl -I -XGET http://elasticsearch-trading.tcp.svc.pbe.dev:9200
curl: (6) Could not resolve host: elasticsearch-trading.tcp.svc.pbe.dev
After upgrade I replaced the workload to get new istio-proxy version.
That’s output when I downgrade istiod and istio-proxy to 1.22.5:
$ curl -I -XGET http://elasticsearch-trading.tcp.svc.pbe.dev:9200
HTTP/1.1 200 OK
x-elastic-product: Elasticsearch
content-type: application/json; charset=UTF-8
content-length: 573
x-envoy-upstream-service-time: 3
date: Mon, 14 Oct 2024 12:04:37 GMT
server: envoy
Adding also a snippet of output from istioctl proxy-config routes:
$ istioctl proxy-config routes trading-search-api-564bd5747f-qbrf6
NAME VHOST NAME DOMAINS MATCH VIRTUAL SERVICE
9200 elasticsearch-trading.tcp.svc.pbe.dev:9200 elasticsearch-trading.tcp.svc.pbe.dev, 240.240.250.133 /*
Version
$ istioctl version
client version: 1.23.2
control plane version: 1.23.2
data plane version: 1.23.2 (53 proxies)
$ kubectl version
Client Version: v1.29.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.30.3-gke.1639000
$ helm version --short
v3.13.3+gc8b9489
Additional Information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 28 (11 by maintainers)
DNS server is 10.51.192.10.
I am almost certain this is the same as https://github.com/istio/istio/issues/53949. Basically now the UDP respects the excludes
@bleggett Please try to do this with above helm values and create following Service Entry:
And then try to run dig from any workload:
And then try to use dig which refer directly to dns server of istio agent:
As you can see something is not working in this area - even if I have IP Tables records correctly:
So we can notice that this is missed in >= 1.23.X:
-A ISTIO_OUTPUT -d 10.51.0.10/32 -p tcp -m tcp --dport 53 -j REDIRECT --to-ports 15053Comparision when I downgrade to 1.22.5