Use
Define a Region
Define a Region via CR:
Define a Region
for each destination region.
Usually you define Region
s to be referenced by Dst
s.
However you don’t access the internalPort
of a Region
. This is reserved for implementing advanced features in future.
Define a Destination
Define a Destination via CR:
Define a Dst
for each destination.
XTS will listen on internalPort
. All traffic to internalPort
will be routed to dstAddr
in dstRegion
.dstRegion
refers to a Region
. The format is <namespace>/<name>
.
Access a Destination
The experience of accessing services in other regions is like accessing services in the same region.
Connect to a
Dst
by connecting to<xts-dns-name>:<internalPort>
.<xts-dns-name>
is the DNS name generated by K8S for XTS, and defaults toxts.<namespace>.svc.cluster.local
, and can be abbreviated toxts.<namespace>
, and can be abbreviated toxts
if the service which initiates the connection is deployed in the same namespace as XTS.<internalPort>
is theinternalPort
of theDst
.XTS will establish a secure tunnel between your service and the destination, as if your service is directly connected to the destination.
Proceed to data transmission.
Uniqueness of Port
internalPort
s should be unique among all ports of XTS in a K8S cluster, otherwise the CR will be rejected.
RESTful
RESTful API is also available. To learn more, view the RESTful API docs → .