On-premise Deployment Options ============================= Scaleout Edge is designed to scale from a single laptop to a multi-region cloud cluster. To support this flexibility, we offer two primary deployment architectures: * **Standard (Docker Compose)**: The whole platform on a single server. * **High Availability (Kubernetes)**: Improved resilience and high availability on a Kubernetes cluster. 1. Standard: Docker Compose --------------------------- The standard deployment runs the entire Control Plane (UI, Controller, Combiner, Database) on a single machine using Docker Compose. Use Cases ~~~~~~~~~ * **Single Server**: Run the whole platform on one machine, on-premise or in the cloud. * **Fast Iteration**: Develop model architectures and client logic against the full platform. * **Air-Gapped Sites**: Run a complete, self-contained network without internet access. Architecture ~~~~~~~~~~~~ In this mode, all services run as containers on a shared Docker network: * **Postgres**: Stores metadata, users, and audit logs. * **Object store (RustFS)**: A bundled S3-compatible store for models and compute packages, a fallback for small installs. Larger installs should use a dedicated S3 service. * **Controller & Combiner**: Run as lightweight services behind a reverse proxy that terminates TLS for both HTTPS and gRPC and forwards plain traffic to the backend. This is the default layout. Ports, TLS and the proxy in front can be changed. See :doc:`customer-deployment` for the options. Upgrading from a release with bundled MinIO needs a one-time data migration. See :doc:`migrate-from-minio`. 2. High Availability: Kubernetes (K8s) -------------------------------------- For enterprise scale, high availability, and strict security requirements, Scaleout Edge deploys on Kubernetes. The Scaleout Helm chart automates this process. Use Cases ~~~~~~~~~ * **Large Scale**: Orchestrating thousands or millions of edge nodes. * **High Availability**: Multiple Combiners and replicated services to keep the platform running. * **Enterprise Integration**: Connecting to external identity providers (OIDC/LDAP), managed databases (Elastx, RDS, Cloud SQL), and observability stacks (Datadog/Prometheus). Architecture Changes ~~~~~~~~~~~~~~~~~~~~ Moving to Kubernetes introduces several architectural enhancements: .. list-table:: :header-rows: 1 :widths: 25 35 40 * - Component - Standard (Docker Compose) - High Availability (K8s) * - Orchestration - Docker Compose - Helm Charts * - Storage - Bundled object store (RustFS) - Bundled object store (RustFS), or managed object storage (AWS S3, GCS, any S3-compatible service) * - Database - Bundled Postgres - Bundled Postgres, CloudNativePG, or managed Postgres * - Ingress - Bundled NGINX reverse proxy with TLS termination - K8s Ingress Controller (NGINX/Traefik) with TLS termination * - Scaling - Single Instance - Built to scale across nodes The bundled object store and database keep the install self-contained, with no outside services to depend on. A managed service hands storage operations and backups to the provider. Deployment Workflow ~~~~~~~~~~~~~~~~~~~ Deploying to a K8s cluster (e.g., EKS, AKS, GKE) typically involves: 1. **Configure values.yaml**: Define your domain, TLS certificate, external database credentials, and resource limits. 2. **Install via Helm**: The chart is available in the Scaleout registry. .. code-block:: bash helm registry login artifacts.scaleoutsystems.com helm pull oci://artifacts.scaleoutsystems.com/scaleout/charts/scaleout --version --untar helm install scaleout ./scaleout -f values.yaml 3. **Scale**: As your fleet grows, scale the services and add Combiners to handle more concurrent connections. .. _deployment-cloudnativepg: Database with CloudNativePG ~~~~~~~~~~~~~~~~~~~~~~~~~~~ The ``scaleout-cnpg`` chart runs the database with the `CloudNativePG `_ operator. It runs a Postgres cluster of one primary and two replicas, and the operator handles backups, replication and failover. The chart is available in the Scaleout registry next to the platform chart, and needs the CloudNativePG operator in the cluster. Install the database chart first, then point the platform chart at it as an external Postgres: .. code-block:: bash helm pull oci://artifacts.scaleoutsystems.com/scaleout/charts/scaleout-cnpg --version --untar helm install scaleout-pg ./scaleout-cnpg helm install scaleout ./scaleout -f values.yaml \ --set statestore.postgresql.deploy=false \ --set statestore.postgresql.host=scaleout-pg-rw \ --set statestore.postgresql.adminPasswordSecret.name=scaleout-pg-superuser \ --set statestore.postgresql.adminPasswordSecret.key=password \ --set statestore.postgresql.caSecret.name=scaleout-pg-ca The services connect to the database with TLS and verify the server against the CA that the operator creates for the cluster, in the Secret ``scaleout-pg-ca``.