API 参考
服务发现配置
服务发现模块配置说明。
服务发现配置
配置前缀: nebula.discovery.nacos
nebula:
discovery:
nacos:
enabled: true
server-addr: localhost:8848 # Nacos服务器地址
namespace: "" # 命名空间ID
group-name: DEFAULT_GROUP # 分组名称
cluster-name: DEFAULT # 集群名称
username: nacos # 用户名
password: nacos # 密码
auto-register: true # 自动注册服务
ip: "" # 指定注册IP(不填则自动检测)
weight: 1.0 # 服务权重
healthy: true # 是否健康
instance-enabled: true # 实例是否启用
heartbeat-interval: 5000 # 心跳间隔(ms)
heartbeat-timeout: 15000 # 心跳超时(ms)
ip-delete-timeout: 30000 # IP删除超时(ms)
preferred-networks: # 首选网络地址(用于多网卡环境)
- 192.168.2
- 10.0
ignored-interfaces: # 忽略的网络接口
- docker0
- veth
metadata: # 元数据
httpPort: ${server.port}