zhixiongdu027 commented on issue #7791:
URL: https://github.com/apache/apisix/issues/7791#issuecomment-1227046441

   Hi , @wolgod 
   
   > If I use the kubernetes service discovery function, is there an interface 
to get the real Upstream information on the backend of the service, or is this 
information just cached in the apisix instance and cannot be viewed?
   
   there is no interface for dump now ,welecom PR .
   
   > in the documentation, it is said that the data exists in 
ngx.shared.kubernetes. If my apisix instance is restarted, how can I ensure 
that all Upstreams have been re-acquired before processing the request?
   
   kubernetes discovery uses List-Watch to get endpoint information .
   
   upstreams information is empty until the first "List" complete .
   If there is a querying before completed, it will get an "nil" result
   
   If you cannot accept this, you may need some way to ensure that apisix only 
accepts client requests after kubernetes discovery 
   completing first "List". 
   ApiSix can't do this by its own
   


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