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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to