Gateways

In order to expose services to the outside world, a user would create a gateway. A gateway can be specified in the environment config or added to the service on the Architect Cloud.

Environment Config

By using the ingress block in an environment config, a user can specify the subdomain that should prefix the custom domain assigned by Architect. When the environment config below is applied, the service my-account/frontend:latest will be available at the domain my-service.my-environment.my-account.arc.domains.

{
  "services": {
    "my-account/frontend:latest": {
      "ingress": {
        "subdomain": "my-service"
      }
      ...
    }
    ...
  }
}

Architect Cloud

A gateway is just as easy to create using the Architect Cloud. On the graph page of an environment, a user can select a service that should be accessible by the gateway. A diff will be shown of the changes to the overall environment. If the changes look good, they can be applied. A node representing the controller will appear on the graph and it will change to green when it has been successfully deployed.