Appearance
微服务治理平台
平台配置
- 本地hosts文件添加配置:
javascript
192.102.21.193 console.sgp-pre.chinapost.com.cn
192.102.21.193 sm-api-plane.sgp-pre.chinapost.com.cn
192.102.21.193 skiff-downloads.sgp-pre.chinapost.com.cn
192.102.21.193 prometheus.sgp-pre.chinapost.com.cn
192.102.21.193 prometheus-platform.sgp-pre.chinapost.com.cn
192.102.21.193 prometheus-nsf.sgp-pre.chinapost.com.cn
192.102.21.193 prometheus-nms.sgp-pre.chinapost.com.cn
192.102.21.193 prometheus-ncs.sgp-pre.chinapost.com.cn
192.102.21.193 prometheus-logagent.sgp-pre.chinapost.com.cn
192.102.21.193 prometheus-istio.sgp-pre.chinapost.com.cn
192.102.21.193 prometheus-grafana.console.sgp-pre.chinapost.com.cn
192.102.21.193 prometheus-apm.sgp-pre.chinapost.com.cn
192.102.21.193 prometheus-apigw.sgp-pre.chinapost.com.cn
192.102.21.193 platform-user-auth.sgp-pre.chinapost.com.cn
192.102.21.193 platform-service-auth.sgp-pre.chinapost.com.cn
192.102.21.193 platform-audit.sgp-pre.chinapost.com.cn
192.102.21.193 nsf-turbine.sgp-pre.chinapost.com.cn
192.102.21.193 nsf-turbine-1.sgp-pre.chinapost.com.cn
192.102.21.193 nsf-turbine-0.sgp-pre.chinapost.com.cn
192.102.21.193 nsf-tunnel-server.sgp-pre.chinapost.com.cn
192.102.21.193 nsf-tunnel-server-1.sgp-pre.chinapost.com.cn
192.102.21.193 nsf-tunnel-server-0.sgp-pre.chinapost.com.cn
192.102.21.193 nsf-server.sgp-pre.chinapost.com.cn
192.102.21.193 nsf-registry.sgp-pre.chinapost.com.cn
192.102.21.193 nsf-registry-1.sgp-pre.chinapost.com.cn
192.102.21.193 nsf-registry-0.sgp-pre.chinapost.com.cn
192.102.21.193 nsf-meta.sgp-pre.chinapost.com.cn
192.102.21.193 nsf-config-service.sgp-pre.chinapost.com.cn
192.102.21.193 nsf-config-portal.sgp-pre.chinapost.com.cn
192.102.21.193 nsf-config-admin.sgp-pre.chinapost.com.cn
192.102.21.193 ncs-webconsole.sgp-pre.chinapost.com.cn
192.102.21.193 ncs.sgp-pre.chinapost.com.cn
192.102.21.193 logseer.sgp-pre.chinapost.com.cn
192.102.21.193 gtxs-server.sgp-pre.chinapost.com.cn
192.102.21.193 console.sgp-pre.chinapost.com.cn
192.102.21.193 apm-webserver.sgp-pre.chinapost.com.cn
192.102.21.193 apm-otel-collector.sgp-pre.chinapost.com.cn
192.102.21.193 apm-collector.sgp-pre.chinapost.com.cn
192.102.21.193 api-plane.sgp-pre.chinapost.com.cn
192.102.21.193 apigw-gportal.sgp-pre.chinapost.com.cn
平台访问地址
- 登录运营管理平台(host配置:inte-platform.chinapost.com.cn 192.101.65.88),点击产品,选择服务治理下微服务治理平台。
创建知识库
- 微服务治理平台-NSF-知识库,点击创建服务,编辑服务信息,创建服务。
nsf.yml文件配置
接入微服务治理(本地开发配置方法):工程中创建nsf.yml文件,配置如下:
yamlnsf: type: http version: '2.0' nsfServer: 'http://nsf-server.sgp-pre.chinapost.com.cn' application: name: standard-product-polymerize version: 0.0.1 projectCode: yysys envCode: prod mark: '' zone: default group: default tags: [] manager: patterns: - className: "" authority: accessKey: f66e84db109c4890b422be7cc32edd81 secretKey: b8cfb432496b46c9acc352246a97dfe3y
nsf.yml文件在工程中的位置,参考下图所示:
- 在微服务治理平台的服务管理界面中可看到该服务,服务启动前无运行的实例
应用部署运行
- 返回流水线界面,执行流水线,执行成功后如图所示。
- 返回微服务治理平台,能够看到相应的服务实例,微服务治理平台接入成功。