1 kubespher平台上端口是随机生成
    image.png

    2 修改kubesphere-controls-system里service服务router配置文件

    1. kubectl -n kubesphere-controls-system edit svc kubesphere-router-ur-api-gateway-test-projec
    2. t
    1. [root@UR-20210425NAMA ~]# kubectl -n kubesphere-controls-system get svc kubesphere-router-ur-api-gateway-test-project
    2. NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
    3. kubesphere-router-ur-api-gateway-test-project NodePort 172.26.98.60 <none> 80:32548/TCP,443:32187/TCP 11d
    4. [root@UR-20210425NAMA ~]# kubectl -n kubesphere-controls-system edit svc kubesphere-router-ur-api-gateway-test-projec
    5. t
    6. service/kubesphere-router-ur-api-gateway-test-project edited
    7. [root@UR-20210425NAMA ~]#

    image.png