Baoyuantop commented on issue #2486:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/2486#issuecomment-3177513708

   > 
https://docs.api7.ai/apisix/reference/apisix-ingress-controller/examples#configure-plugin-on-consumer
 - Here it tells that Plugin configuration is not supported for Apsisix Consumer
   
   Hi @smitmistry77, We can configure plugins on consumers through the Gateway 
API:
   
   ```
   apiVersion: apisix.apache.org/v1alpha1
   kind: Consumer
   metadata:
     name: consumer-airatelimit-limitcount-lite
     labels:
       consumer-type: lite
   spec:
     gatewayRef:
       name: apisix
     credentials:
       - type: key-auth
         name: lite-key-auth
         config:
           key: "xxxxx"
     plugins:
       - name: limit-count
         config:
           count: 1
           time_window: 60
           key: consumer_name
           key_type: var
           policy: local
           rejected_code: 429
           rejected_msg: "Too many requests for lite consumer"
           show_limit_quota_header: true
           allow_degradation: false
   ```
   
   Consumer groups are not currently supported, so a temporary solution might 
require configuring the plugin for each consumer.
   
   


-- 
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-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to