Skip to content

Networking and ingress

Tenant network (VPC)

Each tenant gets one private network when it is created. Instances are attached to it and get an address by DHCP. Its address ranges are shown under Networking; a range cannot be changed or removed while machines are attached to the network.

Public ingress

Apps get a public HTTPS URL automatically. To publish something else (an instance, a service on another host) use the three building blocks under Ingress:

Object What it is
External service A name for a backend: a host name or IP plus ports.
Ingress route Host and path rules that send traffic to a service. TLS certificates are issued automatically, validated over DNS (the default; the host must be in a DNS zone of the platform) or over HTTP (works with any DNS provider once the host points at the platform); a plain-HTTP route is also possible.
Middleware Request processing attached to a route: basic authentication, redirect to HTTPS, regex redirect, strip a path prefix.

Point your domain's DNS at the platform edge, create the external service, then the route, in the console, with rso service create and rso ingress create, or with Terraform.

Not available yet: floating IPs, security groups, load balancers for non-HTTP traffic, managed DNS zones.

Terraform

# Publish a service running on an instance (or any address) under your own
# host name, with a certificate issued for it.
variable "backend_address" {
  description = "Address the traffic is forwarded to, e.g. an instance's IP."
  type        = string
  default     = "198.51.100.10"
}

variable "hostname" {
  description = "Public host name. Its DNS must point at the RSO edge."
  type        = string
  default     = "tf-example.example.com"
}

resource "rso_external_service" "web" {
  name          = "tf-example-web"
  external_name = var.backend_address

  ports = [{
    port        = 80
    target_port = 8080
  }]
}

resource "rso_ingress_route" "web" {
  name = "tf-example-web"

  routes = [{
    match = "Host(`${var.hostname}`)"
    services = [{
      external_service = rso_external_service.web.name
      port             = 80
    }]
  }]

  # Validation over HTTP works with any DNS provider; the default `dns` (validation through DNS)
  # needs the domain to be a zone the platform manages.
  certificate = "http"
}

A route or an external service cannot be changed in place: Terraform replaces it.