dxq6888 commented on issue #12479:
URL: https://github.com/apache/apisix/issues/12479#issuecomment-3141955902

   Yes, our docker compose file is the same,But I modified apisix_buf/config. 
yaml,Added discovery.Kubernetes,Here is my apisix_buf/config.yaml configuration 
file
   ```
   apisix:
     node_listen: 9080
     enable_ipv6: false
   
     enable_control: true
     control:
       ip: "0.0.0.0"
       port: 9092
   
   nginx_config:
     error_log_level: debug
   
   discovery:
     kubernetes:
     - id: prod1
       service:
         schema: https
         host: "a.example.com"
         port: "443"
       client:
         token: |-
           xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
       default_weight: 50
       namespace_selector:
         match:
           - ".*"
       shared_size: 1m
       watch_endpoint_slices: false
     - id: prod2
       service:
         schema: https
         host: "b.example.com"
         port: "443"
       client:
         token: |-
           xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
       default_weight: 50
       namespace_selector:
         match:
           - ".*"
       shared_size: 1m
       watch_endpoint_slices: false 
   
   deployment:
     admin:
       allow_admin:  
         - 0.0.0.0/0
   
       admin_key:
         - name: "admin"
           key: edd1c9f034335f136f87ad84b625c8f1
           role: admin
   
         - name: "viewer"
           key: 4054f7cf07e344346cd3f287985e76a2
           role: viewer
   
     etcd:
       host:
         - "http://etcd:2379";
       prefix: "/apisix"     
       timeout: 30
   
   plugin_attr:
     prometheus:
       export_addr:
         ip: "0.0.0.0"
         port: 9091
   ```


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