kayx23 opened a new issue, #2630:
URL: https://github.com/apache/apisix-ingress-controller/issues/2630

   ### Current Behavior
   
   When using standalone mode, Control API does not return health check data.
   
   
![Image](https://github.com/user-attachments/assets/1632ecbd-a75e-4b2d-8f6b-cbead1eb17d9)
   
   
   ### Expected Behavior
   
   When using etcd, Control API returns meaningful health check data:
   
   
![Image](https://github.com/user-attachments/assets/77b29b8f-75c6-45a4-82d3-d5258b9ef2de)
   
   Standalone mode should return health check data as well.
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   1. Start RC5 in standalone mode
   2. Start two sample upstream services (e.g. nginx)
   3. Configure a route to the upstream with health check:
   
   ```yaml
   apiVersion: apisix.apache.org/v2
   kind: ApisixUpstream
   metadata:
     namespace: ingress-apisix
     name: nginx
   spec:
     ingressClassName: apisix
     externalNodes:
     - type: Domain
       name: nginx1
       port: 8080
     - type: Domain
       name: nginx2
       port: 8081
     healthCheck:
       active:
         type: http
         httpPath: /
         healthy:
           interval: 2s
           successes: 1
         unhealthy:
           interval: 1s
           timeout: 3
   ---
   apiVersion: apisix.apache.org/v2
   kind: ApisixRoute
   metadata:
     namespace: ingress-apisix
     name: example-hc-route
   spec:
     ingressClassName: apisix
     http:
     - name: nginx-hc
       match:
         paths:
         - /
       upstreams:
       - name: nginx
   ```
   
   4. Enable the Control API service and port-forward.
   
   ```
   helm get values -n ingress-apisix apisix --all > values.yaml
   ```
   
   update values file sections:
   
   ```yaml
   apisix:
     enabled: true
   control:
     enabled: true
   ```
   
   helm upgrade:
   
   ```shell
   helm upgrade -n ingress-apisix apisix apisix/apisix -f values.yaml
   ```
   
   port forward:
   
   ```shell
   kubectl port-forward service/apisix-control 9090:9090 &
   ```
   
   5. send a request to the route to start health check:
   
   ```shell
   curl "http://127.0.0.1:9080/";
   ```
   
   6. check health check data using Control API:
   
   ```shell
   curl "http://127.0.0.1:9090/v1/healthcheck";
   ```
   
   ### Environment
   
   RC5


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