Implementing ccpapi.xxx.cn to apiv2.xxx.cn/ccpapi in Kongga
1. The current domain name is: ccpapi.xxx.cn. It can be called normally on the external network. as shown in Figure 1
2. The current Rancher configuration, load balancing. as shown in Figure 2
3. In Konga, Services – Add New Service. name: API_CCP . url:http://api.ccp:82. Fill in these 2 fields only. submit. as shown in Figure 3
4. In Kongga, services, check the details of api_ccp. It is found that the value of the URL has been automatically split into three fields (protocol, host, port). as shown in Figure 4
5. In Konga, Services – Service API_CCP (Note: Modified the name) – routes – add route. name: ccpapi. paths: /ccpapi . Submission error: Submission failed. Schema Violation (must set one ofMethods,hosts,Headers,Paths,sniswhenProtocolsIshttps). as shown in Figure 5
6. At the PATHS field, tap the enter key. Protocols: http, https, hit the enter key. submit. as shown in Figure 6
7. In Rancher, the workload – upgrade service – port mapping – add rules. as shown in Figure 7
8. The current Rancher configuration, load balancing. Delete rule: ccpapi.xxx.cn. as shown in Figure 8
9. The current domain name is: apiv2.xxx.cn/ccpapi. It can be called normally on the external network. But the request received by the server is:http://api.ccp:82. as shown in Figure 9








