Skip to content

Glossary of Resources

There are many resources available in the Datum Cloud API that can be used to manage your infrastructure. This document provides an overview of the available resources and how to use them.

Detailed Export Policies API Reference

apiVersion: v1
items:
- apiVersion: telemetry.miloapis.com/v1alpha1
kind: ExportPolicy
metadata:
name: exportpolicy
spec:
sinks:
- name: grafana-cloud-metrics
sources:
- telemetry-metrics
- gateway-metrics
target:
prometheusRemoteWrite:
authentication:
basicAuth:
secretRef:
name: grafana-cloud-credentials
batch:
maxSize: 500
timeout: 5s
endpoint: https://prometheus-prod-56-prod-us-east-2.grafana.net/api/prom/push
retry:
backoffDuration: 2s
maxAttempts: 3
sources:
- metrics:
metricsql: |
{service_name="telemetry.miloapis.com"}
name: telemetry-metrics
- metrics:
metricsql: |
{service_name="gateway.networking.k8s.io"}
name: gateway-metrics
kind: List
metadata: {}

Detailed Instances API Reference

Instances are what a workload creates.

Let’s say you create a workload to run a container and set the location to a GCP region. Datum’s workload operator will create a GCP virtual machine in that region and run the container on it. The GCP virtual machine is the instance.

Detailed Locations API Reference

apiVersion: networking.datumapis.com/v1alpha
kind: Location
metadata:
name: gcp-us-west1-a
spec:
locationClassName: datum-managed
topology:
topology.datum.net/city-code: DLS
provider:
gcp:
projectId: datum-cloud-poc-1
region: us-west1
zone: us-west1-a

Detailed Networks API Reference

apiVersion: networking.datumapis.com/v1alpha
kind: Network
metadata:
name: default
spec:
ipam:
mode: Auto

Detailed Network Bindings API Reference

Detailed Network Contexts API Reference

Detailed Network Policies API Reference

Detailed Projects API Reference

kind: Project
metadata:
generateName: sample-project-
spec:

Detailed Subnet Claims API Reference

Detailed Subnets API Reference

Detailed Workload API Reference

apiVersion: compute.datumapis.com/v1alpha
kind: Workload
metadata:
labels:
tier: app
name: workload-sandbox-sample
spec:
template:
metadata:
labels:
tier: app
spec:
runtime:
resources:
instanceType: datumcloud/d1-standard-2
sandbox:
containers:
- name: netdata
image: docker.io/netdata/netdata:latest
volumeAttachments:
- name: secret
mountPath: /secret
- name: configmap
mountPath: /configmap
networkInterfaces:
- network:
name: default
networkPolicy:
ingress:
- ports:
- port: 19999
- port: 22
from:
- ipBlock:
cidr: 0.0.0.0/0
volumes:
- name: secret
secret:
secretName: workload-sandbox-sample-secret
- name: configmap
configMap:
name: workload-sandbox-sample-configmap
placements:
- name: us
cityCodes:
- DFW
scaleSettings:
minReplicas: 1

Detailed Workload Deployments API Reference