tao12345666333 commented on issue #861:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/861#issuecomment-1041852513


   Copy from your example.  Just change it to
   
   ```yaml
   config:
     broker_list:
       "192.168.25.111":9092
   ```
   
   The full example:
   
   ```yaml
   apiVersion: apisix.apache.org/v2beta3
   kind: ApisixRoute
   metadata:
     name: method-route
   spec:
     http:
     - name: method
       backends:
       - serviceName: kubernetes
         servicePort: 443
       match:
         methods:
         - GET
         paths:
         - /111
       plugins:
         - name: request-id
           enable: true
           config:
             include_in_response: true
             header_name: "X-Request-Id"
   
         - name: cors
           enable: true
   
         - name: proxy-rewrite
           enable: true
           config:
             regex_uri:
             - ^/case/(.*)
             - /newcase/$1
   
         - name: kafka-logger
           enable: true
           config:
             # broker_list: "{192.168.25.111:9092}"
             broker_list:
               "192.168.25.111":9092
             kafka_topic: apisix_method
             name: kafka-logger-method
             key: kafka-logger-method
             producer_type: async
             batch_max_size: 3000
             inactive_timeout: 30
             buffer_duration: 300
             retry_delay: 5
             max_retry_count: 3
   ```


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