在HashiCorp Nomad中,是否可以指定服务器和客户端的绑定端口(例如,从464{6,7,8}到600{6,7.8}
addresses节不允许指定端口,-bind开关也不允许。advertise节不会更改Nomad绑定的端口。
-bind开关仅允许指定IP:
> nomad agent -server -data-dir=/tmp/nomad -bind=0.0.0.0
==> No configuration files loaded
==> Starting Nomad agent...
==> Nomad agent configuration:
Advertise Addrs: HTTP: <HOSTIP>:4646; RPC: <HOSTIP>:4647; Serf: <HOSTIP>:4648
Bind Addrs: HTTP: 0.0.0.0:4646; RPC: 0.0.0.0:4647; Serf: 0.0.0.0:4648尝试指定端口时出现错误:
> nomad agent -server -data-dir=/tmp/nomad -bind=0.0.0.0:6000
==> Failed to parse HTTP advertise address (, 0.0.0.0:6000, 4646, false): Error resolving bind address "0.0.0.0:6000": lookup 0.0.0.0:6000: no such host发布于 2019-12-20 14:26:44
使用ports节为代理选择端口,无论是在服务器模式还是客户端模式下。
https://stackoverflow.com/questions/59416321
复制相似问题