Skip to content

通过worker生成了一个系统,它在worker中启动这个系统,也自测OK,如何将worker的端口映射出来通过宿主机访问 || A system is generated through the worker. It starts the system in the worker and tests OK. How to map the port of the worker to access it through the host? #1106

Description

@chinahiphop

通过worker生成了一个小系统,它在worker中启动这个系统,worker自测验证OK,那我如何将worker的端口映射出来通过宿主机访问呢?

我想通过higress路由转发,但不行,是不是我配置有问题

1、先得到worker的容器IP和小系统的服务端口;
2、在Higress中创建服务来源;

Image

3、在路由配置中,选择了上面的服务来源

Image 4、通过higress宿主机的IP端口访问 http://10.18.6.141:18080/hifull9090 总是跳转到了 http://10.18.6.141:18080/login登录页

能否帮我看看,谢谢


A small system is generated through the worker, which starts the system in the worker. The worker self-test verifies that it is OK. So how do I map the worker port to access it through the host?

I want to forward through higress routing, but it doesn’t work. Is there something wrong with my configuration?

  1. First get the container IP of the worker and the service port of the small system;
  2. Create a service source in Higress;
Image
  1. In the routing configuration, select the above service source
Image 4. Access through the IP port of the higress host http://10.18.6.141:18080/hifull9090 Always jumps to http://10.18.6.141:18080/login login page

Can you help me take a look, thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions