lxm opened a new issue #729:
URL: https://github.com/apache/apisix-ingress-controller/issues/729
### apisixroute not work
### Environment
* your apisix-ingress-controller version 1.3.0
* your Kubernetes cluster version : v1.18.8-aliyun.1
* aliyun linux
content of apisixroute
```
apiVersion: apisix.apache.org/v2beta2
kind: ApisixRoute
metadata:
name: qingjiao-apiv2
namespace: qingjiao-main-prod
spec:
http:
- name: api
match:
hosts:
- api.domain.test
paths:
- "/api*"
backends:
- serviceName: prod-qingjiao-api
servicePort: 80
```
err msg
```
2021-11-01T11:21:34+08:00 error translation/apisix_route.go:184 failed to
get service port in backend {"backend":
{"serviceName":"","servicePort":0,"weight":null}, "apisix_route":
{"metadata":{"name":"qingjiao-apiv2","namespace":"qingjiao-main-prod","selfLink":"/apis/apisix.apache.org/v2beta1/namespaces/qingjiao-main-prod/apisixroutes/qingjiao-apiv2","uid":"7615120a-f0c8-4ad3-b8b5-983eac8aebee","resourceVersion":"2219214738","generation":1,"creationTimestamp":"2021-11-01T03:05:22Z","annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"apisix.apache.org/v2beta1\",\"kind\":\"ApisixRoute\",\"metadata\":{\"annotations\":{},\"name\":\"qingjiao-apiv2\",\"namespace\":\"qingjiao-main-prod\"},\"spec\":{\"http\":[{\"backend\":{\"serviceName\":\"prod-qingjiao-api\",\"servicePort\":80},\"match\":{\"hosts\":[\"api.domain.test\"],\"paths\":[\"/api*\"]},\"name\":\"api\"}]}}\n"},"managedFields":[{"manager":"kubectl-client-side-apply","operation":"Update","apiVersion
":"apisix.apache.org/v2beta1","time":"2021-11-01T03:05:22Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":{".":{},"f:kubectl.kubernetes.io/last-applied-configuration":{}}},"f:spec":{".":{},"f:http":{}}}}]},"spec":{"http":[{"name":"api","match":{"paths":["/api*"],"hosts":["api.domain.test"]},"backend":{"serviceName":"","servicePort":0,"weight":null},"websocket":false,"authentication":{"enable":false,"type":"","keyauth":{}}}]},"status":{"conditions":[{"type":"ResourcesAvailable","status":"False","lastTransitionTime":"2021-11-01T03:05:23Z","reason":"ResourceSyncAborted","message":"service
\"\" not found"}]}}, "error": "service \"\" not found"}
2021-11-01T11:21:34+08:00 error ingress/apisix_route.go:226 failed to
translate old ApisixRoute {"version": "apisix.apache.org/v2beta1", "event":
"update", "error": "service \"\" not found", "ApisixRoute": {}}
2021-11-01T11:21:34+08:00 warn ingress/apisix_route.go:292 sync ApisixRoute
failed, will retry {"object":
{"Type":2,"Object":{"Key":"qingjiao-main-prod/qingjiao-apiv2","OldObject":{},"GroupVersion":"apisix.apache.org/v2beta1"},"Tombstone":null},
"error": "service \"\" not found"}
```
--
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]