# 注意将 kong-zj 替换为自建kong网关的ip地址或域名deck --kong-addr http://kong-zj:8001/ dump
kong.yaml文件。# 注意kong.yaml内容与实际情况会有所不同cat kong.yaml
_format_version: "1.1"plugins:- config:per_consumer: falseenabled: truename: prometheusprotocols:- grpc- grpcs- http- httpsservices:- connect_timeout: 60000host: 127.0.0.1name: admin-apipath: /port: 8001protocol: httpread_timeout: 60000retries: 5routes:- https_redirect_status_code: 426name: admin-apipath_handling: v1paths:- /admin-apipreserve_host: falseprotocols:- http- httpsregex_priority: 0request_buffering: trueresponse_buffering: truestrip_path: truewrite_timeout: 60000- connect_timeout: 60000host: www.tencent.comname: tencentpath: /port: 80protocol: httpread_timeout: 60000retries: 5routes:- https_redirect_status_code: 426id: 040b0c62-4d31-4286-a595-1832e55bf568path_handling: v1paths:- /preserve_host: falseprotocols:- http- httpsregex_priority: 0request_buffering: trueresponse_buffering: truestrip_path: truewrite_timeout: 60000
Kong.yaml中的配置与云原生 Kong 网关的配置差异。# 注意将 kong-tencent 替换为腾讯云云原生网关Kong的代理地址deck --kong-addr http://kong-tencent/admin-api diffcreating service tencentcreating route 040b0c62-4d31-4286-a595-1832e55bf568creating plugin prometheus (global)Summary:Created: 3Updated: 0Deleted: 0
Kong.yaml中的配置导入腾讯云云原生 Kong 网关中。# 注意 kong-tencent 替换为腾讯云云原生网关Kong的代理地址deck --kong-addr http://kong-tencent/admin-api synccreating service tencentcreating route 040b0c62-4d31-4286-a595-1832e55bf568creating plugin prometheus (global)Summary:Created: 3Updated: 0Deleted: 0



文档反馈