xianshun163 commented on issue #854:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/854#issuecomment-1081778077


   @tao12345666333 
   After I updated the apisix ingress controller according to the above steps, 
a seemingly serious problem occurred。
   All my routes have been added a configuration:  plugin_config_id.
   I only create ApisixUpstream  and  ApisixRoute , but the  the  apisix 
ingress controller  create the plugin config auto.
   Sometimes,  I create tow  routes  for a  Microservices( as a k8s svc). every 
routes  have its own  plugin .
   But the plugin config who  auto create is only one  name (k8s svc name) .
   They will cover each other. 
   
   
   
   the dashboard can see all the plugin config:
   
![image](https://user-images.githubusercontent.com/32457473/160605497-d563c58b-cb9e-4c60-b7d7-1ea988f0707b.png)
   
   
   my yaml file like this:
   ---
   apiVersion: apisix.apache.org/v2beta3
   kind: ApisixUpstream
   metadata:
     name: xsapp-svc
     namespace: test-xs
   spec:
     timeout:
       connect: 10s
       read: 60s
       send: 60s
   
    ---
   apiVersion: apisix.apache.org/v2beta3
   kind: ApisixRoute
   metadata:
     name: xs-privacy
     namespace: test-xs
   spec:
     http:
       - name: rule1
         match:
           hosts:
             - api.dev.xs.cn
             - api.dev.xs.com
           paths:
             - /xs/xs-privacy/*
         backends:
           - serviceName: xsapp-svc
             servicePort: 80
         plugins:
           - name: proxy-rewrite
             enable: true
             config:
               regex_uri:
                 - "^/xs/xs-privacy/*"
                 - "/xs/test.svc/${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: [email protected]

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


Reply via email to