mirror of https://github.com/status-im/consul.git
parent
b80c5258fa
commit
c533a51ec3
|
@ -224,53 +224,59 @@ The following example demonstrates how to format three different `service-intent
|
||||||
|
|
||||||
<CodeTabs tabs={[ "dc1-partition-1", "dc1-partition-2", "dc2-partition-1" ]}>
|
<CodeTabs tabs={[ "dc1-partition-1", "dc1-partition-2", "dc2-partition-1" ]}>
|
||||||
|
|
||||||
<CodeBlockConfig hideClipboard lineNumbers highlight="3-4,6-9">
|
<CodeBlockConfig hideClipboard lineNumbers highlight="3-4,6-11">
|
||||||
|
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
Kind = "service-intentions"
|
Kind = "service-intentions"
|
||||||
Name = "api"
|
Name = "api"
|
||||||
Namespace= "store"
|
Namespace = "store"
|
||||||
Partition="partition-1"
|
Partition = "partition-1"
|
||||||
Sources = [
|
Sources = [
|
||||||
Name = "api"
|
{
|
||||||
Action = "allow"
|
Name = "api"
|
||||||
Namespace = "store"
|
Action = "allow"
|
||||||
SamenessGroup = "sameness-group-a"
|
Namespace = "store"
|
||||||
|
SamenessGroup = "sameness-group-a"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeBlockConfig>
|
</CodeBlockConfig>
|
||||||
|
|
||||||
<CodeBlockConfig hideClipboard lineNumbers highlight="3-4,6-9">
|
<CodeBlockConfig hideClipboard lineNumbers highlight="3-4,6-11">
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
Kind = "service-intentions"
|
Kind = "service-intentions"
|
||||||
Name = "api"
|
Name = "api"
|
||||||
Namespace= "store"
|
Namespace = "store"
|
||||||
Partition= "partition-2"
|
Partition = "partition-2"
|
||||||
Sources = [
|
Sources = [
|
||||||
Name = "api"
|
{
|
||||||
Action = "allow"
|
Name = "api"
|
||||||
Namespace = "store"
|
Action = "allow"
|
||||||
SamenessGroup = "sameness-group-a"
|
Namespace = "store"
|
||||||
|
SamenessGroup = "sameness-group-a"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
</CodeBlockConfig>
|
</CodeBlockConfig>
|
||||||
|
|
||||||
<CodeBlockConfig hideClipboard lineNumbers highlight="3-4,6-9">
|
<CodeBlockConfig hideClipboard lineNumbers highlight="3-4,6-11">
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
Kind = "service-intentions"
|
Kind = "service-intentions"
|
||||||
Name = "api"
|
Name = "api"
|
||||||
Namespace= "store"
|
Namespace = "store"
|
||||||
Partition= "partition-1"
|
Partition = "partition-1"
|
||||||
Sources = [
|
Sources = [
|
||||||
Name = "api"
|
{
|
||||||
Action = "allow"
|
Name = "api"
|
||||||
Namespace = "store"
|
Action = "allow"
|
||||||
SamenessGroup = "sameness-group-a"
|
Namespace = "store"
|
||||||
|
SamenessGroup = "sameness-group-a"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -298,4 +304,4 @@ After creating a sameness group, you can use them with static Consul DNS lookups
|
||||||
|
|
||||||
- [Static Consul DNS lookups](/consul/docs/services/discovery/dns-static-lookups)
|
- [Static Consul DNS lookups](/consul/docs/services/discovery/dns-static-lookups)
|
||||||
- [Dynamic Consul DNS lookups](/consul/docs/services/discovery/dns-dynamic-lookups)
|
- [Dynamic Consul DNS lookups](/consul/docs/services/discovery/dns-dynamic-lookups)
|
||||||
- [Failover overview](/consul/docs/connect/failover)
|
- [Failover overview](/consul/docs/connect/failover)
|
||||||
|
|
Loading…
Reference in New Issue