This is an example of a location that specifies a GCP region (us-central1) and a city code (DFW for Dallas Fort Worth):
apiVersion: compute.datumapis.com/v1alpha
kind: Location
metadata:
name: my-gcp-us-south1-a
spec:
locationClassName: datum-managed
topology:
topology.datum.net/city-code: DFW
provider:
gcp:
projectId: my-gcp-project
region: us-south1
zone: us-south1-a
Let’s walk through the sample spec and review each of the key components.
name: my-gcp-us-south1-a
locationClassName
field specifies the class of the location. In this
case, it’s set to datum-managed
, indicating that this location is managed by
Datum. Alternately, it can be set to self-managed
for users who have deployed
their own self-managed Datum control-plane.locationClassName: datum-managed
The topology
field is used to specify which Datum mangaed network to connect
to. Currently Datum offers the following City locations:
DFW
(Dallas Fort Worth, Texas, USA)LHR
(Heathrow, London, England)DLS
(Dalles, Oregon, USA)topology:
topology.datum.net/city-code: DFW
provider
section is where you tell it which cloud provider to use to
deploy your workload. For the GCP cloud provider, you specify the project ID,
region, and zone.provider:
gcp:
projectId: my-gcp-project
region: us-south1
zone: us-south1-a
For a complete API specification of the Location resource, refer to the Detailed Reference.