<p>We have installed only consul agents on k8 cluster using the helm charts.</p>

<p><a href="https://www.consul.io/docs/platform/k8s/helm.html" rel="nofollow noreferrer">https://www.consul.io/docs/platform/k8s/helm.html</a></p>

<p>We have a separate consul server installed on a cluster (this is non-k8 cluster) outside my k8 cluster.</p>

<p>Is it possible to join my agents to the consul server cluster (non-k8 cluster)?</p>

<p>I have checked the below link</p>

<p><a href="https://www.consul.io/docs/agent/cloud-auto-join.html#tag_value-1" rel="nofollow noreferrer">https://www.consul.io/docs/agent/cloud-auto-join.html#tag_value-1</a></p>

<p>However, this describes only about joining the consul agent joining to the existing k8 consul server. </p>

<pre><code>consul agent -retry-join "provider=k8s label_selector=\"app=consul,component=server\""
</code></pre>

<p>We are using <a href="https://www.consul.io/docs/k8s/helm#v-client-join" rel="nofollow noreferrer"><code>client.join</code></a> parameter in values file since we are using same setup - consul cluster running outside k8s. Consul-k8s is running in client only mode by setting <a href="https://www.consul.io/docs/k8s/helm#v-server-enabled" rel="nofollow noreferrer"><code>server.enabled</code></a> to false.</p>
