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

   > You can refer the test case in 
https://github.com/apache/apisix/blob/master/t/kubernetes/discovery/kubernetes2.t
   
   Maybe this is really a bug, I copied the configuration from the case and 
modified the host, port, and token, but there will be the same error,Here are 
my configurations and error messages
   
   config.yaml
   ```
   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: first
         service:
           host: "123.abc.ap-northeast-1.eks.amazonaws.com"
           port: "443"
         client:
           token: xxxxxxxxxxxxxxx1
         namespace_selector:
           not_match: ["ns-[ab]"]
       - id: second
         service:
           schema: "https"
           host: "abc.123.ap-northeast-1.eks.amazonaws.com"
           port: "443"
         client:
           token: xxxxxxxxxxxxxxx2
   
   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
   
   ```
   
   error message
   ```
   ╰─➤  docker logs -f 384d0849cd1b
   /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init
   failed to read local yaml config of apisix: invalid discovery kubernetes 
configuration: object matches none of the required
   /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init
   failed to read local yaml config of apisix: invalid discovery kubernetes 
configuration: object matches none of the required
   /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init
   failed to read local yaml config of apisix: invalid discovery kubernetes 
configuration: object matches none of the required
   /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init
   failed to read local yaml config of apisix: invalid discovery kubernetes 
configuration: object matches none of the required
   /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init
   failed to read local yaml config of apisix: invalid discovery kubernetes 
configuration: object matches none of the required
   /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init
   failed to read local yaml config of apisix: invalid discovery kubernetes 
configuration: object matches none of the required
   /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init
   failed to read local yaml config of apisix: invalid discovery kubernetes 
configuration: object matches none of the required
   /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init
   failed to read local yaml config of apisix: invalid discovery kubernetes 
configuration: object matches none of the required
   /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init
   failed to read local yaml config of apisix: invalid discovery kubernetes 
configuration: object matches none of the required
   /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init
   failed to read local yaml config of apisix: invalid discovery kubernetes 
configuration: object matches none of the required
   /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init
   failed to read local yaml config of apisix: invalid discovery kubernetes 
configuration: object matches none of the required
   /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init
   failed to read local yaml config of apisix: invalid discovery kubernetes 
configuration: object matches none of the required
   /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init
   failed to read local yaml config of apisix: invalid discovery kubernetes 
configuration: object matches none of the required
   /usr/local/openresty//luajit/bin/luajit ./apisix/cli/apisix.lua init
   failed to read local yaml config of apisix: invalid discovery kubernetes 
configuration: object matches none of the required
   ```


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