mirror of https://github.com/hashicorp/consul
24 lines
424 B
HCL
24 lines
424 B
HCL
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
services {
|
|
name = "s1"
|
|
port = 8080
|
|
connect {
|
|
sidecar_service {
|
|
proxy {
|
|
upstreams = [
|
|
{
|
|
destination_name = "s2"
|
|
destination_peer = "primary-to-alpha"
|
|
local_bind_port = 5000
|
|
mesh_gateway {
|
|
mode = "local"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|