Skip to content

nacos 3.x 注册的服务,如何在higress 配置并调用 || nacos 3.x registered service, how to configure and call it in higress #3188

@huhu-tiger

Description

@huhu-tiger

docker-compose 方式部署的higress与nacos,higress: 2.19, nacos:3.1.0

  1. 希望的效果
    通过higress自动获取naocs上已经注册的服务实例,调用higress 接口访问 服务实例

  2. 现状
    服务实例 直接通过 {ip:port}/task_output 接口返回正常
    通过higress ,访问 {higress_ip}/comfyui/task_output 返回405

a)编写了自动往nacos 注册的脚本 ,nacos 服务注册情况如下图

Image

b) higress配置了nacos 为服务来源

Image

c) higress配置路由

Image --- higress and nacos deployed in docker-compose mode, higress: 2.19, nacos: 3.1.0
  1. Desired effect
    Automatically obtain the registered service instance on naocs through higress, and call the higress interface to access the service instance

  2. Current situation
    Service instance directly returns normal through {ip:port}/task_output interface
    Accessing {higress_ip}/comfyui/task_output through higress returns 405

a) Wrote a script to automatically register with nacos. The nacos service registration situation is as follows:

Image

b) higress is configured with nacos as the service source

Image

c) higress configure routing

Image

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