XW512 commented on issue #9582:
URL: https://github.com/apache/apisix/issues/9582#issuecomment-1647565709

   > @XW512, please paste your config.yaml file with proper formatting here. 
🤦🏼‍♂️ 🤦🏼‍♂️
   
   OK
   this is  data_plane config.yaml
   
   #
   # deployment:
   #   role: traditional
   #   role_traditional:
   #     config_provider: etcd
   #   etcd:
   #     host:
   #       - http://${{ETCD_HOST:=localhost}}:2379
   #
   # This will find environment variable `ETCD_HOST` first, and if it's not 
exist it will use `localhost` as default value.
   #
   apisix:
     ssl:
       ssl_trusted_certificate: /app/apisix-3.3.0/t/certs/mtls_ca.crt
   deployment:
     role: data_plane
     role_data_plane:
       config_provider: control_plane
       control_plane:
         host:
           #- "https://gis-gw-cp.intsit.sfcloud.local:9280";
           - "https://admin.apisix.dev:9280";
         timeout: 30
         prefix: "/apisix"
         #certs:
         #cert: /app/apisix-3.3.0/conf/cert/mtls_client.crt
         #cert_key: /app/apisix-3.3.0/conf/cert/mtls_client.key
     admin:
       admin_key:
         - name: admin
           key: 6b0d04aef24327864740da9ce10c55f0 
           role: admin
   
   
   this is control_plane  config.yaml
   
   #       - http://${{ETCD_HOST}}:2379
   # 
   # And then run `export ETCD_HOST=$your_host` before `make init`.
   #
   # If the configured environment variable can't be found, an error will be 
thrown.
   #
   # Also, If you want to use default value when the environment variable not 
set,
   # Use `${{VAR:=default_value}}` instead. For instance:
   #
   # deployment:
   #   role: traditional
   #   role_traditional:
   #     config_provider: etcd
   #   etcd:
   #     host:
   #       - http://${{ETCD_HOST:=localhost}}:2379
   #
   # This will find environment variable `ETCD_HOST` first, and if it's not 
exist it will use `localhost` as default value.
   #
   deployment:
     role: control_plane
     role_control_plane:
       config_provider: etcd
       conf_server:
         listen: 0.0.0.0:9280
         cert: /app/apisix-3.3.0/t/certs/mtls_server.crt
         cert_key: /app/apisix-3.3.0/t/certs/mtls_server.key
     admin:
       admin_key:
         - name: admin
           key: 6b0d04aef24327864740da9ce10c55f0
           role: admin
   
   producer mtls from 
https://apisix.apache.org/zh/docs/apisix/tutorials/client-to-apisix-mtls/
   


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