You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "ro4i7 (via GitHub)" <gi...@apache.org> on 2023/03/12 15:17:48 UTC

[GitHub] [apisix] ro4i7 commented on issue #8311: feat: As a user, I want kubernetes service discovery to support more configuration items

ro4i7 commented on issue #8311:
URL: https://github.com/apache/apisix/issues/8311#issuecomment-1465225620

   Hello @spacewander @tokers @tzssangglass @crazyMonkey1995 
   
   if this issue is still open, please assign it to me:
   please give the feedback on following solution:
   
   To solve this issue, we can add some configuration items to the Kubernetes service discovery such as the duration of a watch, retry time, or strategy, as shown below:
   ```
   service:
     client:
       retry_interval: 30
     watch:
       duration: 60
       retry_strategy: exponential_backoff
   ```
   In this configuration, the duration of a watch is set to 60 seconds, and the retry strategy is set to exponential backoff. The retry interval is set to 30 seconds, which means that the client will retry connecting to the service after 30 seconds if the initial connection attempt fails.
   
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org