lxm commented on issue #729:
URL:
https://github.com/apache/apisix-ingress-controller/issues/729#issuecomment-956121230
> The Route version that apisix-ingress-controller watches is `v2beta`,
according to the log message:
>
> > 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"}
>
> You should use the `v2beta2` as the watching version (see
[here](https://github.com/apache/apisix-helm-chart/blob/master/charts/apisix-ingress-controller/templates/configmap.yaml#L36)).
tried to use v2 before restart,but didn't work, got the same error.
--
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]