jhon-ye opened a new issue, #1236:
URL: https://github.com/apache/apisix-ingress-controller/issues/1236
### Issue description
when i use the below config to create stream_route failed
`apiVersion: apisix.apache.org/v2beta3
kind: ApisixRoute
metadata:
name: tcp-route
spec:
stream:
- name: tcp-route-rule1
protocol: TCP
match:
ingressPort: 8848
backend:
serviceName: mysql
servicePort: 3306`
can not get stream route
the log belows
`2022-08-09T17:53:04+08:00 debug ingress/apisix_route.go:341
ApisixRoute add event arrived {"object":
{"metadata":{"name":"tcp-route","namespace":"default","uid":"65b0fa75-fb58-4f40-ade5-e92ca5198372","resourceVersion":"16316650","generation":1,"creationTimestamp":"2022-08-09T09:53:04Z","annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"apisix.apache.org/v2beta3\",\"kind\":\"ApisixRoute\",\"metadata\":{\"annotations\":{},\"name\":\"tcp-route\",\"namespace\":\"default\"},\"spec\":{\"stream\":[{\"backend\":{\"serviceName\":\"mysql\",\"servicePort\":3306},\"match\":{\"ingressPort\":8848},\"name\":\"tcp-route-rule1\",\"protocol\":\"TCP\"}]}}\n"},"managedFields":[{"manager":"kubectl-client-side-apply","operation":"Update","apiVersion":"apisix.apache.org/v2beta3","time":"2022-08-09T09:53:04Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:kubectl.kubernetes.io/last-applied-configuration":{}}},"f:spec":{".":{},
"f:stream":{}}}}]},"spec":{"stream":[{"name":"tcp-route-rule1","protocol":"TCP","match":{"ingressPort":8848},"backend":{"serviceName":"mysql","servicePort":3306}}]},"status":{}}}
2022-08-09T17:53:04+08:00 debug ingress/apisix_route.go:182
translated ApisixRoute {"routes": null, "upstreams":
[{"id":"aa4ab360","name":"default_mysql_3306","desc":"Created by
apisix-ingress-controller, DO NOT modify it
manually","labels":{"managed-by":"apisix-ingress-controller"},"type":"roundrobin","nodes":[{"host":"10.244.1.59","port":3306,"weight":100}],"scheme":"http"}],
"apisix_route": {}, "pluginConfigs": null}
2022-08-09T17:53:04+08:00 debug apisix/upstream.go:136 try to
create upstream {"name": "default_mysql_3306", "url":
"http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/upstreams",
"cluster": "default"}
2022-08-09T17:53:04+08:00 debug apisix/upstream.go:151 creating
upstream {"body":
"{\"id\":\"aa4ab360\",\"name\":\"default_mysql_3306\",\"desc\":\"Created by
apisix-ingress-controller, DO NOT modify it
manually\",\"labels\":{\"managed-by\":\"apisix-ingress-controller\"},\"type\":\"roundrobin\",\"nodes\":[{\"host\":\"10.244.1.59\",\"port\":3306,\"weight\":100}],\"scheme\":\"http\"}",
"url":
"http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/upstreams/aa4ab360"}
2022-08-09T17:53:04+08:00 debug apisix/resource.go:123 got
upstream:
{"pass_host":"pass","hash_on":"vars","nodes":[{"host":"10.244.1.59","weight":100,"port":3306,"priority":0}],"desc":"Created
by apisix-ingress-controller, DO NOT modify it
manually","type":"roundrobin","create_time":1660038784,"name":"default_mysql_3306","id":"aa4ab360","labels":{"managed-by":"apisix-ingress-controller"},"scheme":"http","update_time":1660038784}
2022-08-09T17:53:04+08:00 debug ingress/apisix_route.go:370
ApisixRoute update event arrived {"new object": {}, "old object": {}}
2022-08-09T17:53:04+08:00 debug ingress/apisix_route.go:182
translated ApisixRoute {"routes": null, "upstreams":
[{"id":"aa4ab360","name":"default_mysql_3306","desc":"Created by
apisix-ingress-controller, DO NOT modify it
manually","labels":{"managed-by":"apisix-ingress-controller"},"type":"roundrobin","nodes":[{"host":"10.244.1.59","port":3306,"weight":100}],"scheme":"http"}],
"apisix_route": {}, "pluginConfigs": null}`
### Environment
- apisix-ingress-controller version (1.5.0)
- apisix version(2.15.0-alpine)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]