Zhang21 commented on issue #769:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/769#issuecomment-989632996


   Same error about apisix ingress accesses to apisix admin api.
   
   ```
   2021-12-09T16:37:00+08:00    info    ingress/controller.go:290       
LeaderElection  {"message": "apisix-ingress-controller-769ddc5457-68d2z became 
leader", "event_type": "Normal"}
   I1209 16:37:00.635044       1 leaderelection.go:253] successfully acquired 
lease ingress-apisix/ingress-apisix-leader
   2021-12-09T16:37:00+08:00    info    ingress/controller.go:370       
controller tries to leading ... {"namespace": "ingress-apisix", "pod": 
"apisix-ingress-controller-769ddc5457-68d2z"}
   2021-12-09T16:37:00+08:00    warn    apisix/cluster.go:304   waiting cluster 
default to ready, it may takes a while
   2021-12-09T16:37:02+08:00    error   apisix/route.go:117     failed to list 
routes: Get 
http://apisix-admin.ingress-apisix.svc.cluster.local:9180/apisix/admin/routes: 
context canceled
   2021-12-09T16:37:02+08:00    error   apisix/cluster.go:197   failed to list 
route in APISIX: Get 
http://apisix-admin.ingress-apisix.svc.cluster.local:9180/apisix/admin/routes: 
context canceled
   [GIN] 2021/12/09 - 16:37:03 | 200 |     162.264µs |    172.16.2.248 | GET    
  "/healthz"
   ```
   
   <br/>
   
   I can access apisix admin api by curl:
   
   ```bash
   curl 
http://apisix-admin.ingress-apisix.svc.cluster.local:9180/apisix/admin/routes 
-H 'X-API-KEY: xxxxx'
   { result xxxxxx }
   ```


-- 
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]


Reply via email to