我已经在VM节点上安装并配置了Consul集群。我想在客户端模式下添加另一个节点,而不是在服务器模式下。这些节点应该在Kubernetes上运行。我已经使用了HELM模板,但我不能在客户端模式下添加这些节点,只能在服务器节点中添加。舵机模板:https://github.com/helm/charts/tree/master/stable/consul
发布于 2020-04-29 06:25:39
官方领事头盔图(https://github.com/hashicorp/consul-helm/)支持这一点。您将希望使用类似于下面的配置来部署Helm图表。
# By default disable all resources in the Helm chart
global:
enabled: false
# Enable Client nodes
client:
enabled: true
# Set this to true to expose the Consul clients using the Kubernetes node
# IPs. If false, the pod IPs must be routable from the external servers.
exposeGossipPorts: true
# IPs of your external Consul server(s)
join:
- 192.0.2.10
- 192.0.2.20
- 192.0.2.30有关详细信息,请参阅Consul Servers Outside of Kubernetes文档。
https://stackoverflow.com/questions/60885393
复制相似问题