Skip to content

Commit 307c3f4

Browse files
committed
docs(consul-k8s): add example for multiple IPs in externalHosts configuration
1 parent 896c8c5 commit 307c3f4

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

content/consul/v1.20.x/content/docs/k8s/deployment-configurations/servers-outside-kubernetes.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ Next, configure `externalServers` to point it to Consul servers.
2020
The `externalServers.hosts` value must be provided and should be set to a DNS, an IP,
2121
or an `exec=` string with a command returning Consul IPs. Please see [this documentation](https://github.com/hashicorp/go-netaddrs)
2222
on how the `exec=` string works.
23+
For example, to specify multiple static IPs, use the `exec=` string:
24+
25+
<CodeBlockConfig filename="values.yaml">
26+
27+
```yaml
28+
externalServers:
29+
hosts: ["exec=echo 192.0.2.10 192.0.2.11 192.0.2.12"]
30+
```
31+
32+
</CodeBlockConfig>
33+
2334
Other values in the `externalServers` section are optional. Please refer to
2435
[Helm Chart configuration](/consul/docs/k8s/helm#h-externalservers) for more details.
2536

content/consul/v1.21.x/content/docs/deploy/server/k8s/external.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ Next, configure `externalServers` to point it to Consul servers.
2020
The `externalServers.hosts` value must be provided and should be set to a DNS, an IP,
2121
or an `exec=` string with a command returning Consul IPs. Please see [this documentation](https://github.com/hashicorp/go-netaddrs)
2222
on how the `exec=` string works.
23+
For example, to specify multiple static IPs, use the `exec=` string:
24+
25+
<CodeBlockConfig filename="values.yaml">
26+
27+
```yaml
28+
externalServers:
29+
hosts: ["exec=echo 192.0.2.10 192.0.2.11 192.0.2.12"]
30+
```
31+
32+
</CodeBlockConfig>
33+
2334
Other values in the `externalServers` section are optional. Please refer to
2435
[Helm Chart configuration](/consul/docs/reference/k8s/helm#h-externalservers) for more details.
2536

content/consul/v1.22.x/content/docs/deploy/server/k8s/external.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ Next, configure `externalServers` to point it to Consul servers.
2020
The `externalServers.hosts` value must be provided and should be set to a DNS, an IP,
2121
or an `exec=` string with a command returning Consul IPs. Please see [this documentation](https://github.com/hashicorp/go-netaddrs)
2222
on how the `exec=` string works.
23+
For example, to specify multiple static IPs, use the `exec=` string:
24+
25+
<CodeBlockConfig filename="values.yaml">
26+
27+
```yaml
28+
externalServers:
29+
hosts: ["exec=echo 192.0.2.10 192.0.2.11 192.0.2.12"]
30+
```
31+
32+
</CodeBlockConfig>
33+
2334
Other values in the `externalServers` section are optional. Please refer to
2435
[Helm Chart configuration](/consul/docs/reference/k8s/helm#h-externalservers) for more details.
2536

0 commit comments

Comments
 (0)