FIREcup commented on issue #12978:
URL: https://github.com/apache/apisix/issues/12978#issuecomment-3857690886
> Hi [@FIREcup](https://github.com/FIREcup), when calling the admin API to
query routes, data is returned. What do you mean by “the route was not created
successfully”?
I need to correct that — the Ingress resource was indeed created. I
encountered another issue: I also created an ApisixRoute resource, but it seems
that this route resource was not created.
```
apiVersion: apisix.apache.org/v2
kind: ApisixRoute
metadata:
name: health-check
namespace: apisix
spec:
http:
- name: health
match:
paths:
- /healthz
hosts:
- health.bblops.com
backends:
- serviceName: apisix-gateway
servicePort: 80
```
```
# curl -H "X-API-KEY: x" http://apisix-admin:9180/apisix/admin/routes
{"total":1,"list":[{"key":"/apisix/routes/e97dfc7b","value":{"labels":{"manager-by":"apisix-ingress-controller","k8s/controller-name":"apisix.apache.org/apisix-ingress-controller","k8s/kind":"Ingress","k8s/name":"apisix-admin","k8s/namespace":"apisix"},"create_time":1770278541,"update_time":1770278541,"name":"apisix_apisix-admin_0-0","service_id":"e97dfc7b","uris":["/","/*"],"status":1,"id":"e97dfc7b","desc":"Created
by apisix-ingress-controller, DO NOT modify it
manually"},"createdIndex":36,"modifiedIndex":36}]}
```
--
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]