mirror of https://github.com/status-im/consul.git
Merge pull request #14420 from hashicorp/docs/fix-peering-guide
docs: Fix code example in cluster peering
This commit is contained in:
commit
d037ccf3e8
|
@ -108,7 +108,7 @@ First, create a configuration entry and specify the `Kind` as `"exported-service
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
Kind = "exported-services"
|
Kind = "exported-services"
|
||||||
|
Name = "default"
|
||||||
Services = [
|
Services = [
|
||||||
{
|
{
|
||||||
## The name and namespace of the service to export.
|
## The name and namespace of the service to export.
|
||||||
|
@ -120,10 +120,11 @@ Services = [
|
||||||
{
|
{
|
||||||
## The peer name to reference in config is the one set
|
## The peer name to reference in config is the one set
|
||||||
## during the peering process.
|
## during the peering process.
|
||||||
Peer = "cluster-02"
|
PeerName = "cluster-02"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeBlockConfig>
|
</CodeBlockConfig>
|
||||||
|
|
Loading…
Reference in New Issue