mirror of https://github.com/hashicorp/consul
26 lines
327 B
HCL
26 lines
327 B
HCL
|
ID {
|
||
|
Type = gvk("mesh.v2beta1.Destinations")
|
||
|
Name = "api"
|
||
|
}
|
||
|
|
||
|
Data {
|
||
|
Workloads {
|
||
|
Prefixes = ["api"]
|
||
|
}
|
||
|
|
||
|
Destinations = [
|
||
|
{
|
||
|
DestinationRef = {
|
||
|
Type = gvk("catalog.v2beta1.Service")
|
||
|
Name = "db"
|
||
|
}
|
||
|
|
||
|
DestinationPort = "tcp"
|
||
|
|
||
|
IpPort = {
|
||
|
Port = 1234
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|