首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Consul add Kubernetes节点

Consul add Kubernetes节点
EN

Stack Overflow用户
提问于 2020-03-27 19:48:31
回答 1查看 78关注 0票数 0

我已经在VM节点上安装并配置了Consul集群。我想在客户端模式下添加另一个节点,而不是在服务器模式下。这些节点应该在Kubernetes上运行。我已经使用了HELM模板,但我不能在客户端模式下添加这些节点,只能在服务器节点中添加。舵机模板:https://github.com/helm/charts/tree/master/stable/consul

EN

回答 1

Stack Overflow用户

发布于 2020-04-29 06:25:39

官方领事头盔图(https://github.com/hashicorp/consul-helm/)支持这一点。您将希望使用类似于下面的配置来部署Helm图表。

代码语言:javascript
复制
# 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文档。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60885393

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档