<p>I have installed and configured Consul cluster on VM nodes. I would like to add there another nodes in client mode, not in SERVER mode. These nodes should run on Kubernetes. I have used HELM template but I'm not able to add there these nodes in CLIENT mode but only in server node. HELM TEMPLATE: <a href="https://github.com/helm/charts/tree/master/stable/consul" rel="nofollow noreferrer">https://github.com/helm/charts/tree/master/stable/consul</a></p>

<p>I want to use this for service registration to Consul cluster. Does anyone has any idea or experience with this?</p>

Jiří Šafář
<p>The official Consul helm chart (<a href="https://github.com/hashicorp/consul-helm/" rel="nofollow noreferrer">https://github.com/hashicorp/consul-helm/</a>) supports this. You'll want to deploy the Helm chart using a configuration similar to the following.</p>

<pre class="lang-yaml prettyprint-override"><code># 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

</code></pre>

<p>See the <a href="https://www.consul.io/docs/platform/k8s/servers-outside-kubernetes.html" rel="nofollow noreferrer">Consul Servers Outside of Kubernetes</a> docs for details.</p>
