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/10 12:26:19 UTC

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

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