You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/03/01 08:55:22 UTC

[GitHub] [apisix-helm-chart] xgenvn opened a new issue #242: Add option to enable control_api for apisix gateway

xgenvn opened a new issue #242:
URL: https://github.com/apache/apisix-helm-chart/issues/242


   In some scenarios where we need an endpoint to return 20x status for lb service health check (eg: on GKE, APISIX is configured to sit behind an ingress route).
   The easiest way is to enable `control_api` when installing through helm and a way to configure health check configuration in deployment resource.


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



[GitHub] [apisix-helm-chart] xgenvn closed issue #242: Add option to enable control_api for apisix gateway

Posted by GitBox <gi...@apache.org>.
xgenvn closed issue #242:
URL: https://github.com/apache/apisix-helm-chart/issues/242


   


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



[GitHub] [apisix-helm-chart] xgenvn commented on issue #242: Add option to enable control_api for apisix gateway

Posted by GitBox <gi...@apache.org>.
xgenvn commented on issue #242:
URL: https://github.com/apache/apisix-helm-chart/issues/242#issuecomment-1064001144


   Hi all, I managed by a workaround using custom nginx.
   
   In helm `values.yml`
   ```yaml
   # Custom configuration snippet.
   configurationSnippet:
     main: |
   
     httpStart: |
   
     httpEnd: |
   
     httpSrv: |
       location = /apisix/__healthcheck {                                                                                                                                                                                       
           allow all;                                                                                                                                                                                                 
           access_log on;
           return 200 'ok';                                                                                                                                                                                                   
       }
     httpAdmin: |
   
     stream: |
   ```
   
   Then for GKE, use this example for BackendConfig
   ```
   apiVersion: cloud.google.com/v1
   kind: BackendConfig
   metadata:
     name: apisix-lb-backendconfig
   spec:
     timeoutSec: 300
     healthCheck:
       checkIntervalSec: 60
       timeoutSec: 60
       healthyThreshold: 1
       unhealthyThreshold: 10
       requestPath: /apisix/__healthcheck
       type: HTTP
   ```
   
   Ignore the content of this issue, exposing or enable `control_api` won't work.


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



[GitHub] [apisix-helm-chart] tao12345666333 commented on issue #242: Add option to enable control_api for apisix gateway

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #242:
URL: https://github.com/apache/apisix-helm-chart/issues/242#issuecomment-1055469141


   Thanks for your report.


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



[GitHub] [apisix-helm-chart] tokers commented on issue #242: Add option to enable control_api for apisix gateway

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #242:
URL: https://github.com/apache/apisix-helm-chart/issues/242#issuecomment-1055265501


   @xgenvn PR is welcome!


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