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 2021/09/30 06:38:50 UTC

[GitHub] [apisix-ingress-controller] LuChenjing opened a new issue #700: ApisixRoute route still work after deleting AR source

LuChenjing opened a new issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700


   Using helm to install apisix and apisix-ingress-controller.
   ![image](https://user-images.githubusercontent.com/42744697/135398393-e96b77fe-4fe2-49de-b352-8fdcb230b0f4.png)
   apisix version: image apache/apisix:2.7-alpine
   apisix-ingress-controller: image apache/apisix-ingress-controller:1.1.0
   
   Here is the ApisixRoute manifest yaml:
   ```yaml
   apiVersion: apisix.apache.org/v2alpha1
   kind: ApisixRoute
   metadata:
     name: observer-apisixroute
     namespace: onest-observer
   spec:
     http:
       - name: prometheus-1
         match:
           paths:
             - /monitor1/*
         backend:
           serviceName: prometheus-monitoring-1
           servicePort: 9090
         plugins:
           - name: proxy-rewrite
             enable: true
             config:
               regex_uri:
                 - "^/monitor1/(.*)"
                 - "/$1"
       - name: prometheus-2
         match:
           paths:
             - /monitor2/*
         backend:
           serviceName: prometheus-monitoring-2
           servicePort: 9090
         plugins:
           - name: proxy-rewrite
             enable: true
             config:
               regex_uri:
                 - "^/monitor2/(.*)"
                 - "/$1"
       - name: grafana-rule
         match:
           paths:
             - /dashboard/*
         backend:
           serviceName: grafana-ha-svc
           servicePort: 3000
         plugins:
           - name: proxy-rewrite
             enable: true
             config:
               regex_uri:
                 - "^/dashboard/(.*)"
                 - "/$1"
   ```
   
   **Issue1:** After applying the resource only shown URIS: /monitor1/*:
   ![image](https://user-images.githubusercontent.com/42744697/135398952-9786aebb-0784-4c87-88d2-c059d93882be.png)
   
   Able to access prometheus1
   ![image](https://user-images.githubusercontent.com/42744697/135399385-670c822d-b7ad-4bd6-bbc6-b6a60f07cff2.png)
   
   **Issue2:** Able to accesser by /monitor2/ but shown the page of prometheus1
   ![image](https://user-images.githubusercontent.com/42744697/135399694-31579308-6a62-49cb-9961-a1d1d8f1d6ad.png)
   
   **Issue3:** After delete ApisixRoute, still able to access the prometheus1
   ![image](https://user-images.githubusercontent.com/42744697/135399982-bb7217d1-4094-442b-8596-dfa12dca0623.png)
   ![image](https://user-images.githubusercontent.com/42744697/135400287-83a9390c-6331-4e90-9fa8-89377b3e1ed7.png)
   ![image](https://user-images.githubusercontent.com/42744697/135400342-016cf22d-45b8-47bf-b5db-96570979ef0d.png)
   
   
    


-- 
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-ingress-controller] tao12345666333 commented on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-941953216


   can you provide your apisix routes?


-- 
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-ingress-controller] Firgeis commented on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
Firgeis commented on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-989955628


   What might also be related is that admin API calls to route are inconsistent:
   ![apisixrouteget](https://user-images.githubusercontent.com/6520188/145424904-60817d60-1a07-4742-94ce-781b0afba39c.gif)
   
   


-- 
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-ingress-controller] gxthrj edited a comment on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
gxthrj edited a comment on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-941896136


   @LuChenjing 
   I have sorted out your screenshots, the configuration worked as expected, maybe you got it wrong understanding?
   
   1. The configuration paragraph of `prometheus-2` in ApisixRoute resource
   ```yaml
   - name: prometheus-2
         match:
           paths:
             - /monitor2/*
         backend:
           serviceName: prometheus-monitoring-2
           servicePort: 9090
         plugins:
           - name: proxy-rewrite
             enable: true
             config:
               regex_uri:
                 - "^/monitor2/(.*)"
                 - "/$1"
   ```
   
   2. The Prometheus svc 
   ![image](https://user-images.githubusercontent.com/4413028/137064173-ab0e3700-26e0-4947-b586-401e37840c3d.png)
   
   3. Request to Prometheus-2 directly
   ![image](https://user-images.githubusercontent.com/4413028/137064273-1c329670-821d-492c-8305-4a7663c6576e.png)
   
   4. Request to Proemtheus-2 from APISIX 
   [**The same result as request to Prometheus-2 directly, which is expected**]
   ![image](https://user-images.githubusercontent.com/4413028/137064354-2f7fb5ec-dfb6-410b-b0ef-645fbbd719a5.png)
   
   5. But, Request to APISIX by `http://100.71.8.124:30005/api/v1/status/config` , I can not see the configure `/api/*` in `ApisixRoute` manifest yaml. So we can’t tell which upstream the request is sent to, and need you to provide the relevant routing configuration.
   
   


-- 
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-ingress-controller] tokers commented on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-938311726


   > The result of curl the right URL is correct. But browser rewrite to a different URL. For issue2, when I try to access the monitor2 from the browser, it will redirect to `http://**.**.**.**:30005/api/v1/status/config` instead of `http://**.**.**.**:30005/monitor2/api/v1/status/config`, so the result shown incorrect. Is this an issue belongs to proxy-rewrite plugin?
   
   I cannot capture the authentic meaning, and there is no redirect stage from the ApisixRoute you configured.


-- 
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-ingress-controller] gxthrj edited a comment on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
gxthrj edited a comment on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-941896136


   @LuChenjing 
   I have sorted out your screenshots, the configuration worked as expected, can you see if your understanding is wrong?
   
   1. The configuration paragraph of `prometheus-2` in ApisixRoute resource
   ```yaml
   - name: prometheus-2
         match:
           paths:
             - /monitor2/*
         backend:
           serviceName: prometheus-monitoring-2
           servicePort: 9090
         plugins:
           - name: proxy-rewrite
             enable: true
             config:
               regex_uri:
                 - "^/monitor2/(.*)"
                 - "/$1"
   ```
   
   2. The Prometheus svc 
   ![image](https://user-images.githubusercontent.com/4413028/137064173-ab0e3700-26e0-4947-b586-401e37840c3d.png)
   
   3. Request to Prometheus-2 directly
   ![image](https://user-images.githubusercontent.com/4413028/137064273-1c329670-821d-492c-8305-4a7663c6576e.png)
   
   4. Request to Proemtheus-2 from APISIX 
   [**The same result as request to Prometheus-2 directly, which is expected**]
   ![image](https://user-images.githubusercontent.com/4413028/137064354-2f7fb5ec-dfb6-410b-b0ef-645fbbd719a5.png)
   
   5. But, Request to APISIX by `http://100.71.8.124:30005/api/v1/status/config` , I can not see the configure `/api/*` in `ApisixRoute` manifest yaml. So we can’t tell which upstream the request is sent to, and need you to provide the relevant routing configuration.
   
   


-- 
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-ingress-controller] tokers commented on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-938573315


   It seems that the configurations are correct, could you try to access the APISIX admin API and print all routes?


-- 
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-ingress-controller] gxthrj commented on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
gxthrj commented on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-953459182


   @LuChenjing Is the status code 302 returned by `http://100.71.8.124:30005/monitor2/` ?


-- 
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-ingress-controller] LuChenjing commented on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
LuChenjing commented on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-952783407


   > can you provide your apisix routes?
   
   Hi @tao12345666333  Here is our ApisixRoute manifest yaml:
   
   ```yaml
   apiVersion: apisix.apache.org/v2alpha1
   kind: ApisixRoute
   metadata:
     name: observer-apisixroute
     namespace: onest-observer
   spec:
     http:
       - name: prometheus-1
         match:
           paths:
             - /monitor1/*
         backend:
           serviceName: prometheus-monitoring-1
           servicePort: 9090
         plugins:
           - name: proxy-rewrite
             enable: true
             config:
               regex_uri:
                 - "^/monitor1/(.*)"
                 - "/$1"
       - name: prometheus-2
         match:
           paths:
             - /monitor2/*
         backend:
           serviceName: prometheus-monitoring-2
           servicePort: 9090
         plugins:
           - name: proxy-rewrite
             enable: true
             config:
               regex_uri:
                 - "^/monitor2/(.*)"
                 - "/$1"
       - name: grafana-rule
         match:
           paths:
             - /dashboard/*
         backend:
           serviceName: grafana-ha-svc
           servicePort: 3000
         plugins:
           - name: proxy-rewrite
             enable: true
             config:
               regex_uri:
                 - "^/dashboard/(.*)"
                 - "/$1"
   ```


-- 
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-ingress-controller] Firgeis commented on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
Firgeis commented on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-989936435


   I am having the same issue, after creating routes by applying an apixisroute CRD then deleting it. CRD is deleted but the routes are still shown in the admin (and they work).
   Same case with modifying the routes in the CRD, they don't seem to be applied.


-- 
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-ingress-controller] LuChenjing edited a comment on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
LuChenjing edited a comment on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-932326795


   Sure, For
   
   > 1. Issue 1 is a CRD definition problem about the column printer.
   > 2. For issue 2, could you paste the request/response details, you can use the curl utility.
   > 3. Will try to reproduce the issue 3 on my local.
   
   Sure, for issue2:
   I got K8S service for prometheus1,2:
   ![image](https://user-images.githubusercontent.com/42744697/135645339-4d1f1e52-6514-4344-ac31-f83151f00988.png)
   
   CURL the prometheus 2 with the nodePort service:
   ![image](https://user-images.githubusercontent.com/42744697/135645233-c4e730da-bcad-4682-86af-2d0e406f0a2c.png)
    
   CURL the prometheus 2 with the exact apisix route path(**same with nodePort service**):
   ![image](https://user-images.githubusercontent.com/42744697/135645701-9e997b69-f15e-4fad-9dcd-05a2cced9978.png)
   ![image](https://user-images.githubusercontent.com/42744697/135646449-6f1c7d30-0428-4393-ba15-f1c0cb5eed31.png)
   
   
   But not able to access the correct service on browser:
   ![image](https://user-images.githubusercontent.com/42744697/135646139-4bbb445a-32e7-468d-b424-143b6b7c52a8.png)
    
   


-- 
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-ingress-controller] tokers commented on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-931897590


   1. Issue 1 is a CRD definition problem about the column printer.
   2. For issue 2, could you paste the request/response details, you can use the curl utility.
   3. Will try to reproduce the issue 3 on my local.


-- 
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-ingress-controller] LuChenjing commented on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
LuChenjing commented on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-952786407


   > @LuChenjing I have sorted out your screenshots, the configuration worked as expected, maybe you got it wrong understanding?
   > 
   > 1. The configuration paragraph of `prometheus-2` in ApisixRoute resource
   > 
   > ```yaml
   > - name: prometheus-2
   >       match:
   >         paths:
   >           - /monitor2/*
   >       backend:
   >         serviceName: prometheus-monitoring-2
   >         servicePort: 9090
   >       plugins:
   >         - name: proxy-rewrite
   >           enable: true
   >           config:
   >             regex_uri:
   >               - "^/monitor2/(.*)"
   >               - "/$1"
   > ```
   > 
   > 1. The Prometheus svc
   >    ![image](https://user-images.githubusercontent.com/4413028/137064173-ab0e3700-26e0-4947-b586-401e37840c3d.png)
   > 2. Request to Prometheus-2 directly
   >    ![image](https://user-images.githubusercontent.com/4413028/137064273-1c329670-821d-492c-8305-4a7663c6576e.png)
   > 3. Request to Proemtheus-2 from APISIX
   >    _[**The same result as request to Prometheus-2 directly, which is expected**]_
   >    ![image](https://user-images.githubusercontent.com/4413028/137064354-2f7fb5ec-dfb6-410b-b0ef-645fbbd719a5.png)
   > 4. But, Request to APISIX by `http://100.71.8.124:30005/api/v1/status/config` , I can not see the configure `/api/*` in `ApisixRoute` manifest yaml. So we can’t tell which upstream the request is sent to, and need you to provide the relevant routing configuration.
   
   Hi @gxthrj  sorry for this late reply...
   For point No.5, I am trying to access prometheus2 by path `/monitor2/`, but the request will direct to `http://100.71.8.124:30005/api/v1/status/config` after accessing `http://100.71.8.124:30005/monitor2/` on Chrome browser, this is the problem.


-- 
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-ingress-controller] tokers commented on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-937482347


   OK, so the results of curl are correct but the page shown from the browser is wrong? I didn't understand the specific meaning of diagram 2 with its lines.


-- 
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-ingress-controller] gxthrj edited a comment on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
gxthrj edited a comment on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-941896136






-- 
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-ingress-controller] juzhiyuan commented on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-993316381


   Hi @LuChenjing, would you please add more information about this case?


-- 
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-ingress-controller] gxthrj edited a comment on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
gxthrj edited a comment on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-941896136


   @LuChenjing 
   I have sorted out your screenshots, the configuration worked as expected, maybe you got it wrong understanding?
   
   1. The configuration paragraph of `prometheus-2` in ApisixRoute resource
   ```yaml
   - name: prometheus-2
         match:
           paths:
             - /monitor2/*
         backend:
           serviceName: prometheus-monitoring-2
           servicePort: 9090
         plugins:
           - name: proxy-rewrite
             enable: true
             config:
               regex_uri:
                 - "^/monitor2/(.*)"
                 - "/$1"
   ```
   
   2. The Prometheus svc 
   ![image](https://user-images.githubusercontent.com/4413028/137064173-ab0e3700-26e0-4947-b586-401e37840c3d.png)
   
   3. Request to Prometheus-2 directly
   ![image](https://user-images.githubusercontent.com/4413028/137064273-1c329670-821d-492c-8305-4a7663c6576e.png)
   
   4. Request to Proemtheus-2 from APISIX 
   _[**The same result as request to Prometheus-2 directly, which is expected**]_
   ![image](https://user-images.githubusercontent.com/4413028/137064354-2f7fb5ec-dfb6-410b-b0ef-645fbbd719a5.png)
   
   5. But, Request to APISIX by `http://100.71.8.124:30005/api/v1/status/config` , I can not see the configure `/api/*` in `ApisixRoute` manifest yaml. So we can’t tell which upstream the request is sent to, and need you to provide the relevant routing configuration.
   
   


-- 
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-ingress-controller] tao12345666333 commented on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-941953216


   can you provide your apisix routes?


-- 
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-ingress-controller] LuChenjing commented on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
LuChenjing commented on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-938289344


   The result of curl the right URL is correct. But browser rewrite to a different URL.
   For issue2,  when I try to access the monitor2 from the browser, it will redirect to `http://**.**.**.**:30005/api/v1/status/config` instead of `http://**.**.**.**:30005/monitor2/api/v1/status/config`, so the result shown incorrect. 
   Is this an issue belongs to proxy-rewrite plugin?


-- 
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-ingress-controller] gxthrj commented on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
gxthrj commented on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-941896136


   @LuChenjing 
   I have sorted out your screenshots, the configuration is the same as expected, can you see if your understanding is wrong?
   
   1. The configuration paragraph of `prometheus-2` in ApisixRoute resource
   ```yaml
   - name: prometheus-2
         match:
           paths:
             - /monitor2/*
         backend:
           serviceName: prometheus-monitoring-2
           servicePort: 9090
         plugins:
           - name: proxy-rewrite
             enable: true
             config:
               regex_uri:
                 - "^/monitor2/(.*)"
                 - "/$1"
   ```
   
   2. The Prometheus svc 
   ![image](https://user-images.githubusercontent.com/4413028/137064173-ab0e3700-26e0-4947-b586-401e37840c3d.png)
   
   3. Request to Prometheus-2 directly
   ![image](https://user-images.githubusercontent.com/4413028/137064273-1c329670-821d-492c-8305-4a7663c6576e.png)
   
   4. Request to Proemtheus-2 from APISIX 
   [**The same result as request to Prometheus-2 directly, which is expected**]
   ![image](https://user-images.githubusercontent.com/4413028/137064354-2f7fb5ec-dfb6-410b-b0ef-645fbbd719a5.png)
   
   5. But, Request to APISIX by `http://100.71.8.124:30005/api/v1/status/config` , I can not see the configure `/api/*` in `ApisixRoute` manifest yaml. So we can’t tell which upstream the request is sent to, and need you to provide the relevant routing configuration.
   
   


-- 
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-ingress-controller] tokers commented on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-937482347


   OK, so the results of curl are correct but the page shown from the browser is wrong? I didn't understand the specific meaning of diagram 2 with its lines.


-- 
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-ingress-controller] gxthrj commented on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
gxthrj commented on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-941896136


   @LuChenjing 
   I have sorted out your screenshots, the configuration is the same as expected, can you see if your understanding is wrong?
   
   1. The configuration paragraph of `prometheus-2` in ApisixRoute resource
   ```yaml
   - name: prometheus-2
         match:
           paths:
             - /monitor2/*
         backend:
           serviceName: prometheus-monitoring-2
           servicePort: 9090
         plugins:
           - name: proxy-rewrite
             enable: true
             config:
               regex_uri:
                 - "^/monitor2/(.*)"
                 - "/$1"
   ```
   
   2. The Prometheus svc 
   ![image](https://user-images.githubusercontent.com/4413028/137064173-ab0e3700-26e0-4947-b586-401e37840c3d.png)
   
   3. Request to Prometheus-2 directly
   ![image](https://user-images.githubusercontent.com/4413028/137064273-1c329670-821d-492c-8305-4a7663c6576e.png)
   
   4. Request to Proemtheus-2 from APISIX 
   [**The same result as request to Prometheus-2 directly, which is expected**]
   ![image](https://user-images.githubusercontent.com/4413028/137064354-2f7fb5ec-dfb6-410b-b0ef-645fbbd719a5.png)
   
   5. But, Request to APISIX by `http://100.71.8.124:30005/api/v1/status/config` , I can not see the configure `/api/*` in `ApisixRoute` manifest yaml. So we can’t tell which upstream the request is sent to, and need you to provide the relevant routing configuration.
   
   


-- 
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-ingress-controller] LuChenjing commented on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
LuChenjing commented on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-938386062


   Here's the background. I am trying to use ApisixRoute to be the entrance of our local services, 
   as need to work in private cloud and there is no DNS server. So I want to access different services by different path, can check the detail `ApisixRoute manifest yaml` above.
   I used the `proxy-rewrite plugin`, but met the issue2(cannot access No.2 prometheus by accessing path`/monitor2`), am i doing wrong configuration?


-- 
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-ingress-controller] LuChenjing commented on issue #700: ApisixRoute route still work after deleting AR source

Posted by GitBox <gi...@apache.org>.
LuChenjing commented on issue #700:
URL: https://github.com/apache/apisix-ingress-controller/issues/700#issuecomment-932326795


   Sure, For
   
   > 1. Issue 1 is a CRD definition problem about the column printer.
   > 2. For issue 2, could you paste the request/response details, you can use the curl utility.
   > 3. Will try to reproduce the issue 3 on my local.
   
   Sure, for issue2:
   I got K8S service for prometheus1,2:
   ![image](https://user-images.githubusercontent.com/42744697/135645339-4d1f1e52-6514-4344-ac31-f83151f00988.png)
   
   CURL the prometheus 2 with the nodePort service:
   ![image](https://user-images.githubusercontent.com/42744697/135645233-c4e730da-bcad-4682-86af-2d0e406f0a2c.png)
    
   CURL the prometheus 2 with the exact apisix route path(**same with nodePort service**):
   ![image](https://user-images.githubusercontent.com/42744697/135645701-9e997b69-f15e-4fad-9dcd-05a2cced9978.png)
   
   But not able to access the correct service on browser:
   ![image](https://user-images.githubusercontent.com/42744697/135646139-4bbb445a-32e7-468d-b424-143b6b7c52a8.png)
    
   


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