Skip to content
المشاريع

حول

نسخة من GroundX قابلة للنشر على Kubernetes لتحليل المستندات وتخزينها والبحث فيها.

الأنظمة والبنية التحتية

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
٠
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

GroundX On-Prem/On-Cloud Kubernetes Infrastructure As Code

Table of Contents

What is GroundX On-Prem?

Installing GroundX

Autoscaling & Monitoring

Using GroundX On-Prem

Terraform Deployment (terraform/aws/)

What is GroundX On-Prem?

With this repository you can deploy GroundX RAG document ingestion and search capabilities to a Kubernetes cluster in a manner that can be isolated from any external dependencies.

GroundX delivers a unique approach to advanced RAG that consists of three interlocking systems:

  1. GroundX Ingest: A state-of-the-art vision model trained on over 1M pages of enterprise documents. It delivers unparalleled document understanding and can be fine-tuned for your unique document sets.
  2. GroundX Store: Secure, encrypted storage for source files, semantic objects, and vectors, ensuring your data is always protected.
  3. GroundX Search: Built on OpenSearch, it combines text and vector search with a fine-tuned re-ranker model for precise, enterprise-grade results.

In head-to-head testing, GroundX significantly outperforms many popular RAG tools (ref1, ref2, ref3), especially with respect to complex documents at scale. GroundX is trusted by organizations like Air France, Dartmouth and Samsung with over 2 billion tokens ingested on our models.

GroundX On-Prem allows you to leverage GroundX within hardened and secure environments. GroundX On-Prem requires no external dependencies when running, meaning it can be used in air-gapped environments. Deployment consists of two key steps:

  1. (Optional) Creation of Infrastructure on AWS via Terraform
  2. Deployment of GroundX onto Kubernetes via Helm

Currently, creation of infrastructure via Terraform is only supported for AWS. However, with sufficient expertise GroundX can be deployed onto any pre-existing Kubernetes cluster.

This repo is in Open Beta. Feedback is appreciated and encouraged. To use the hosted version of GroundX visit EyeLevel.ai. For white glove support in configuring this open source repo in your environment, or to access more performant and closed source versions of this repo, contact us. To learn more about what GroundX is, and what it's useful for, you may be interested in the following resources:

If you're deploying GroundX On-Prem on AWS, you might be interested in this simple video guide for deploying on AWS. To see how well GroundX understands your documents, check out our online testing tool:

GX Ingest
Test your documents for free online

GroundX Ingest Service

The GroundX ingest service expects visually complex documents in a variety of formats. It analyzes those documents with several fine tuned models, converts the documents into a queryable representation which is designed to be understood by LLMs, and stores that information for downstream search.

GroundX Ingest Service

GroundX Search Service

Once documents have been processed via the ingest service they can be queried against via natural language queries. We use a custom configuration of Open Search which has been designed in tandem with the representations generated from the ingest service.

GroundX Search Service

Installing GroundX

Command Line Tool Dependencies

You must have the following command line tools installed:

- `bash` shell (version 4.0 or later recommended. AWS Cloud Shell has insufficient resources.)
- `kubectl` (or `oc`) configured to a namespace you can write to (e.g., `eyelevel`) ([Setup Docs](https://kubernetes.io/docs/tasks/tools/))
- `helm` v3.8+

Cluster Requirements

In order to deploy GroundX On-Prem to your Kubernetes cluster, you must:

  1. Check that you have the required compute resources
  2. Configure or create appropriate node groups and nodes
  3. Create a Namespace or use an existing one
  4. Create a PV Class or use an existing one
  5. Install the NVIDIA GPU Operator if it's not already installed

Background

Node Groups

By default, the GroundX On-Prem pods deploy to nodes using node selector labels and tolerations. Here is an example from one of the k8 yaml configs:

nodeSelector:
  eyelevel_node: "eyelevel-cpu-only"
tolerations:
  - key: "eyelevel_node"
    value: "eyelevel-cpu-only"
    effect: "NoSchedule"

Node labels are defined in the values.yaml and must be applied to appropriate nodes within your cluster. Default node label values are:

eyelevel-cpu-memory
eyelevel-cpu-only
eyelevel-gpu-layout
eyelevel-gpu-ranker
eyelevel-gpu-summary

Required Compute Resources

Chip Architecture

The publicly available GroundX On-Prem Kubernetes pods are all built for x86_64 architecture. Pods built for other architectures, such as arm64, are available upon customer request.

Supported GPUs

The GroundX On-Prem GPU pods are designed to run on NVIDIA GPUs with CUDA 12+. Other GPU types or older driver versions are not supported.

As part of the deployment, the NVIDIA GPU Operator must be installed. We offer terraform scripts to deploy the NVIDIA GPU Operator to your cluster, if you have not already done so.

The NVIDIA GPU operator should update your NVIDIA drivers and other software components needed to provision the GPU, so long as you have supported NVIDIA hardware on the machine.

Total Recommended Resources

The GroundX On-Prem recommended resource requirements are:

eyelevel-cpu-only
    80 GB     disk drive space
    8         CPU cores
    16 GB     RAM

eyelevel-cpu-memory
    20 GB     disk drive space
    4         CPU cores
    16 GB     RAM

eyelevel-gpu-layout
    16 GB     GPU memory
    75 GB     disk drive space
    4         CPU cores
    12 GB     RAM

eyelevel-gpu-ranker
    16 GB     GPU memory
    75 GB     disk drive space
    8         CPU cores
    30 GB     RAM

eyelevel-gpu-summary
    48 GB     GPU memory
    100 GB    disk drive space
    4         CPU cores
    30 GB     RAM
Node Group Resources

The GroundX On-Prem pods are grouped into 5 categories, based on resource requirements, and deploy as described in the node group section.

These pods can be deployed to 5 different dedicated node groups, a single node group, or any combination in between, so long as the minimum resource requirements are met and the appropriate node labels are applied to the nodes.

The resource requirements are as follows:

eyelevel-cpu-only

Pods in this node group have minimal requirements on CPU, RAM, and disk drive space. They can run on virtually any machine with the supported architecture.

The resource requirements for these pods are described in more detail in the Total Recommended Resources section above.

eyelevel-cpu-memory

Pods in this node group have a range of requirements on CPU, RAM, and disk drive space but can typically run on most machines with the supported architecture.

CPU and memory intensive ingestion pipeline pods, such as layout_ocr, layout_save, and pre_process, will deploy to the eyelevel-cpu-memory nodes. The layout_ocr pod includes tesseract, which benefits from access to multiple vCPU cores.

The resource requirements for these pods are described in more detail in the Total Recommended Resources section above.

eyelevel-gpu-layout

Pods in this node group have specific requirements on GPU, CPU, RAM, and disk drive space.

The resource requirements for these pods are described detail in more detail in the Total Recommended Resources section above.

The current configuration for this service assumes an NVIDIA GPU with 16 GB of GPU memory, 4 CPU cores, and at least 12 GB RAM. It deploys 1 pod with threads on this node (called layout.inference.threads in values.yaml) and claims the GPU via the nvidia.com/gpu resource provided by the NVIDIA GPU operator.

If your machine has different resources than this, you will need to modify layout.inference in your values.yaml using the per pod requirements described above to optimize for your node resources.

Note: in many cloud Kubernetes services, such as EKS, you must use a node image that supports GPUs (e.g. AL2023_x86_64_NVIDIA).

eyelevel-gpu-ranker

Pods in this node group have specific requirements on GPU, CPU, RAM, and disk drive space.

The resource requirements for these pods are described detail in more detail in the Total Recommended Resources section above.

The current configuration for this service assumes an NVIDIA GPU with 16 GB of GPU memory, 4 CPU cores, and at least 30 GB RAM. It deploys 1 pod with 14 workers on this node (called ranker.inference.workers in values.yaml). It does not claim the GPU via the nvidia.com/gpu resource provided by the NVIDIA GPU operator but uses 16 GB of GPU memory.

If your machine has different resources than this, you will need to modify ranker.inference in your values.yaml using the per pod requirements described above to optimize for your node resources.

Note: in many cloud Kubernetes services, such as EKS, you must use a node image that supports GPUs (e.g. AL2023_x86_64_NVIDIA).

eyelevel-gpu-summary

Pods in this node group have specific requirements on GPU, CPU, RAM, and disk drive space.

The resource requirements for these pods are described detail in more detail in the Total Recommended Resources section above.

The default configuration for this service is sized for an NVIDIA GPU with 48 GB of GPU memory, 4 CPU cores, and at least 30 GB RAM. It deploys 2 pods on this node (called summary.inference.replicas.desired in values.yaml). It does not claim the GPU via the nvidia.com/gpu resource provided by the NVIDIA GPU operator, so every summary pod scheduled to a node shares that node's GPU.

Each summary pod runs summary.inference.workers workers, and each worker loads its own copy of the model and reserves summary.inference.deviceUtilize of the GPU's total memory (a fraction from 0 to 1). On each summary GPU node, pods x summary.inference.workers x summary.inference.deviceUtilize must be at most 1. With the defaults this is 2 x 1 x 0.48 = 0.96. Each worker's share must also hold the model and its cache: on a 24 GB GPU a share of 0.48 is too small, so the default values do not fit a 24 GB GPU.

For one 24 GB summary GPU, run a single summary pod with one worker:

summary:
  inference:
    replicas:
      min: 1
      desired: 1
      max: 1
    workers: 1
    deviceUtilize: 0.9
    updateStrategy: Recreate

Apply these values to a running install with helm upgrade, passing the file with -f after your other values files. With updateStrategy: Recreate, Kubernetes stops the old summary pods before it starts the new one, so summary is unavailable on each upgrade until the new pod has loaded its model (the load took about 5 minutes in the test run). Without it, the default rolling update starts the new pod while the old pods still hold the GPU, and the new pod cannot load its model.

These values assume the summary pod has the node's GPU to itself. They were tested on an AWS g5.2xlarge (one NVIDIA A10G, which reported 23028 MiB of GPU memory) with the summary-inference:0.2.7 image and helm v3.19.0+g3d8990f, applied as an in-place helm upgrade to an install running the default values. Other 24 GB GPUs, such as the NVIDIA L4, were not tested.

With several summary GPU nodes, or with cluster.hpa: true and summary.inference.replicas.max above 1, more than one summary pod can land on the same node and share its GPU. To keep one pod per GPU, set nvidia.com/gpu: 1 under both requests and limits in summary.inference.resources, or spread the pods across nodes with summary.inference.topologySpreadConstraints. Each pod then has a GPU to itself, so on 24 GB GPUs use the summary.inference.workers and summary.inference.deviceUtilize values from the block above. In either case, keep summary.inference.replicas.max at or below the number of summary pods your summary GPU nodes can hold. With a GPU request, keep updateStrategy: Recreate unless a spare GPU is free, because a rolling update's new pod waits Pending for the GPU the old pod holds. Every summary pod mounts the same model volume claim, so pods on more than one node need ReadWriteMany storage for that claim. The claim inherits cluster.pvAccessMode and cluster.pvClass; if that is not already ReadWriteMany on a storage class that supports it, set summary.inference.pvc.access: ReadWriteMany and such a class in summary.inference.pvc.class (see Persistent Storage). Kubernetes does not let a claim that already exists change its access mode, so on an existing install also set a new summary.inference.pvc.name (the default is summary-model): the upgrade creates a new claim, the summary pods download the model into it again, and Helm removes the old claim because the chart no longer renders it. With ReadWriteOnce storage the volume can be mounted by one node only, so a pod scheduled to a second node cannot start; keep summary on one node instead.

For the 48 GB defaults, updateStrategy: Recreate is also recommended, with the same brief outage on each upgrade. Without it, Kubernetes' default rolling update starts a third summary pod on the node before it stops an old one, three pods at 0.48 need 1.44 of the GPU, and the new pod cannot load its model. This advice follows from that arithmetic and from the 24 GB test without Recreate, where the rollout stalled the same way; it was not tested on a 48 GB GPU.

If your machine has different resources than this, you will need to modify summary.inference in your values.yaml using the per pod requirements described above to optimize for your node resources.

Note: in many cloud Kubernetes services, such as EKS, you must use a node image that supports GPUs (e.g. AL2023_x86_64_NVIDIA).

Configure Node Groups

As mentioned in the node groups section, node labels are defined in values.yaml and must be applied to appropriate nodes within your cluster. Default node label values include:

eyelevel-cpu-memory
eyelevel-cpu-only
eyelevel-gpu-layout
eyelevel-gpu-ranker
eyelevel-gpu-summary

Multiple node labels can be applied to the same node group, so long as resources are available as described in the total recommended resource and node group resources sections.

However, all node labels must exist on at least 1 node group within your cluster. The label should be applied with a string key named eyelevel_node and an enumerated string value from the list above.

Applying Custom Node Groups

Default Labels

If you use the default labels described in Configure Node Groups, you do not need to do anything else. The helm chart assumes these default values during the deployment.

Custom Labels

If you use custom labels, you must update the following values during GroundX deployment:

cache.node
cache.metrics.node
groundx.node
layout.api.node
layout.correct.node
layout.inference.node
layout.map.node
layout.ocr.node
layout.process.node
layout.save.node
layoutWebhook.node
preProcess.node
process.node
queue.node
ranker.api.node
ranker.inference.node
summary.api.node
summary.inference.node
summaryClient.node
upload.node

See the values.yaml README.md for more information about these values.

You will also need to update values for any services you deploy as well.

Namespace

You must have a namespace where the GroundX application can be installed. If you need to create one, you can do so by running the following command:

kubectl create namespace eyelevel

This will create a namespace called eyelevel where GroundX pods will be installed.

The default values.yaml namespace assumes a name of eyelevel. If you choose to use a different namespace name, you will have to update the values.yaml file accordingly.

PV Class

GroundX requires a PV class for some of the pods. If you have not created one, we have included a chart that will create one. You can run it with the following comand:

helm install groundx-storageclass \
  groundx/groundx-storageclass \
  -n eyelevel

NVIDIA GPU Operator

Some of the GroundX pods require access to an NVIDIA GPU. The easiest way to ensure access is to install the NVIDIA GPU Operator, which will ensure the appropriate drivers and libraries are installed on the GPU nodes.

If you'd like to install the NVIDIA GPU Operator to your cluster, use the following commands below:

helm repo add nvidia https://helm.ngc.nvidia.com/nvidia
helm repo update

helm install nvidia-gpu-operator \
  nvidia/gpu-operator \
  -n nvidia-gpu-operator \
  --create-namespace \
  --atomic \
  -f helm/values/nvidia/values.yaml

Installing in Microsoft Azure

If you're installing the NVIDIA GPU operator into Microsoft Azure, be sure to set the runtimeClass to nvidia-container-runtime. We have included an example yaml that shows how to do this at helm/values/nvidia/values.aks.yaml.

If you'd like to install the NVIDIA GPU Operator with this AKS-specific yaml, use the following commands below:

helm install nvidia-gpu-operator nvidia/gpu-operator \
  -n nvidia-gpu-operator \
  --create-namespace \
  --atomic \
  -f helm/values/nvidia/values.aks.yaml

Installing Services

Redis

Using an Existing Redis Cluster

If you wish to use an existing redis cache, you must configure the cache.existing and cache.metrics.existing parameters in your values.yaml.

Upgrading to Chart 0.2.8 with a rediss:// Redis

Chart 0.2.8 images verify the certificate chain and the host name of a rediss:// Redis in the layout, ranker and summary services, both the APIs and the workers. This applies when you set ssl: true under cache.existing, under the ranker-only ranker.cache, or under cache.metrics.existing for a separate metrics Redis; the certificate must cover the addr host name of each. A plain redis:// Redis, including the Redis the chart installs, is unaffected. A certificate that chains to a public root needs no action.

If your Redis certificate comes from a private CA, or does not cover the addr host name, act before upgrading. Build a complete CA bundle from the public root CAs plus your private CA, store it in a Secret under the key ca.crt in the GroundX namespace (the namespace value, eyelevel by default), and set fileAccess.caSecretName to its name. If fileAccess.caSecretName is already set, for example for a private object-store CA, add the Redis CA to that Secret's ca.crt instead. Alternatively, correct addr to a host name the certificate covers.

The bundle replaces the container's default CA file. A Secret that holds only the private CA breaks the HTTPS calls that rely on public roots, such as an LLM API or an object store, so keep the public roots and any CAs already in the bundle.

If you skip this and a certificate does not verify, ingest, search and summary requests fail and the workers stop publishing and consuming tasks. The ai-server API and worker pods stay Ready even when they cannot connect, so after upgrading check the layout, ranker and summary logs for certificate verify failed.

Not every Redis client verifies yet. The ai-server layout, ranker and summary clients verify. The extract client (AGE-395) and the workspace runner still accept any certificate from a rediss:// Redis.

Deploying a Dedicated Redis Cluster

If you'd like to install redis to your cluster, instances will be automatically created during the application installation for you so long as cache.existing is an empty dictionary and cache.enabled is true.

Workspace

The workspace service family is optional and disabled by default. Enable it when the Partner API should provision managed code projects for GroundX Studio Harness generated projects. The runner is internal-only: agents call the Partner API, the Partner API calls the runner, and the runner owns managed repository creation, short-lived git sessions, fallback file operations, command execution, cleanup, and publish operations.

Set workspace.enabled: true and provide either workspace.token or workspace.existingSecret. When workspace.token is provided, the chart renders it into the generated GroundX config.yaml as workspace.token, renders it into the runner config.py as runner_token, and creates a workspace-secret containing WORKSPACE_RUNNER_TOKEN as the environment fallback. When workspace.existingSecret is provided, that secret must contain WORKSPACE_RUNNER_TOKEN; both the Partner API and workspace runner fall back to that environment value because the config files intentionally render the token empty. The internal runner URL is derived into GroundX config.yaml as workspace.baseURL, not stored as a secret.

The runner follows the standard Python microservice deployment pattern. The API uses the shared Gunicorn deployment template and the workers use the shared supervisord Celery deployment template. Workspace-specific resources provide /app/config.py (a Secret, since it carries credentials — see GX-17), /app/gunicorn_conf.py (a ConfigMap), and one supervisord config per queue (ConfigMaps): provision, workspace, command, publish, and cleanup. API knobs such as threads, workers, timeout, timeoutKeepAlive, replicas, resources, node, serviceAccount, and pod metadata live under workspace.api, matching the other Python API services. Worker knobs such as queue, threads, workers, replicas, resources, node, serviceAccount, and pod metadata live under each worker section: provision, workspace, command, publish, and cleanup.

Workspace project metadata and operation state are stored in MySQL. The primary path creates a managed GitHub or GitLab repository from the scaffold, returns a short-lived repo-scoped git session, and expects agents to clone, edit, commit, and push locally. The optional secondary file API uses /tmp/workspaces only as a disposable checkout cache for server-side reads, writes, patches, commands, and diffs; Git remains the source of truth and cache loss is recoverable. By default the chart renders this cache as emptyDir. Set workspace.pvc.enabled: true only when you want a persistent cache for repeated secondary file API work. When enabled, the PVC follows the same helper pattern as inference services: cluster.pvClass sets the storage class and cluster.pvAccessMode sets the access mode. Prefer ReadWriteMany when multiple workspace pods need to share the cache. The runner waits on Redis/Valkey and MySQL but does not wait on file storage because workspace artifacts are not part of the GroundX document file store. Runtime config rendered into /app/config.py uses chart helpers for MySQL, Redis/Valkey, command, and workspace defaults, with workspace.publishDryRun exposed as the normal safety toggle.

workspace.ownershipChecksEnabled defaults to true. Setting it to false skips runner ownership comparisons and project-list filtering, but leaves runner authentication and operation safety checks active. The shared ConfigMap change rolls the workspace API and every worker. Deploy a compatible workspace-runner image before using a chart version that renders this setting. Restore true before offering Workspace outside internal use.

Publish is dry-run by default. To enable real publish, set workspace.publishDryRun: false, configure the provider credentials owned by the runner service, and set the workflow or pipeline to trigger. For GitHub Actions:

Managed project data is also disabled by default. For the hosted AWS path, set workspace.managedData.enabled: true, its AWS region, and the dev and prod S3 bucket, Redis endpoint, and Redis user-group values. To verify managed MySQL certificates with a public CA, set workspace.managedData.mysqlSslCaConfigMap to an existing ConfigMap containing the fixed key ca.pem; the chart mounts it read-only at /var/run/config/workspace/mysql/ca.pem in the Workspace API and all five workers. Use workspace.existingSecret; it must contain WORKSPACE_RUNNER_TOKEN, MANAGED_DATA_RDS_ADMIN_CONNECTION_DEV, and MANAGED_DATA_RDS_ADMIN_CONNECTION_PROD. Keep the RDS administrator URLs out of values files. Grant every Workspace component service account the least-privilege AWS permissions needed to manage the configured S3 prefixes, IAM users, and ElastiCache users. Enable dev first and verify allocation, republish, isolation, and confirmed deletion before enabling prod. Disabling the setting stops new reconciliation but does not delete existing app data.

workspace:
  enabled: true
  token: "<internal-runner-token>"
  publishDryRun: false
  publishGithubWorkflowId: deploy.yml
  github:
    appId: "<github-app-id>"
    installationId: "<github-app-installation-id>"
    privateKeySecret:
      name: workspace-github-app
      key: private-key.pem

For GitLab, set workspace.gitProvider: gitlab, configure workspace.gitlab.apiBaseUrl, and provide a token via workspace.gitlab.tokenSecret or workspace.gitlab.token.

privateKeySecret is the production path: the chart mounts that existing secret only into workspace API and worker pods at /var/run/secrets/workspace/github/private-key.pem. For local or lower-environment testing, workspace.github.privateKeyPem can populate GITHUB_APP_PRIVATE_KEY_PEM in a generated workspace-github-secret that is mounted only into workspace API and worker pods. GitHub credentials are not mounted into the Partner API service.

Workspace autoscaling uses the same external metrics server as the rest of GroundX. Enable the metrics server and either global or per-component HPA settings so every rendered HPA metric has a matching config.yaml metric definition:

metrics:
  enabled: true

cluster:
  hpa: true

workspace:
  enabled: true
  token: "<internal-runner-token>"
  command:
    queue: command_queue
    replicas:
      desired: 2
      threshold: 10
      throughput: 1250

The API emits workspace-api:api with a default threshold of 4000 and, by default, workspace-api:throughput with a default throughput of 50000. The Partner API receives the runner URL from the workspace API helper, so the derived internal URL follows the same pattern as extract-api: http://workspace-api.<namespace>.svc.cluster.local. Worker HPAs emit workspace-<worker>:task and point the metrics server at the configured Celery queue for that worker; worker task thresholds default to 10, worker targets default to 1, and worker throughput defaults to 50000. All of these values may be overridden per worker. Keep custom worker queue names in values rather than editing templates so the HPA and metrics-server config stay in sync.

Run the local Helm production gate before changing chart helpers, values, schemas, or snapshots:

.build/bin/validate-helm.sh

The Helm CI gate uses the same script. It lints both chart surfaces, runs Helm unittest, verifies that snapshots did not silently drop empty renders, runs .build/bin/verify-workspace-chart.py to prove the workspace API service and metrics contracts stay aligned, and runs .build/bin/verify-storage-contract.py to prove StorageClass defaults, provider examples, PVC access modes, mirrored chart files, and the setup-eks generated EFS/EBS values and printed Helm commands all render. After deploying to a cluster, run .build/bin/smoke-workspace-runner.sh with the target kube context selected to verify the API, workers, cluster DNS, health endpoint, internal /storage status endpoint, and Partner API runner URL wiring.

MySQL

Using an Existing MySQL Cluster

If you wish to use an existing MySQL cluster, you must configure the db.existing parameters in your values.yaml.

Deploying a Dedicated MySQL Cluster

If you'd like to install MySQL to your cluster, use the following commands below:

helm repo add percona https://percona.github.io/percona-helm-charts/
helm repo update

helm install db-operator \
  percona/pxc-operator \
  -n eyelevel \
  -f helm/values/percona/values.operator.yaml
helm install db-cluster \
  percona/pxc-db \
  -n eyelevel \
  -f helm/values/percona/values.cluster.yaml

MinIO AIStor

GroundX stores files in one S3-compatible bucket (file.bucketName, default eyelevel). New installs use MinIO AIStor with your own license. S4 is a license-free option for small installs. Existing community MinIO tenants can upgrade to AIStor or stay on community MinIO.

Using an Existing MinIO Cluster

If you wish to use an existing MinIO or AIStor cluster, you must configure the file.existing parameters in your values.yaml.

Using AWS S3

If you wish to use an existing AWS S3 bucket, you must configure the file.existing parameters in your values.yaml and set file.serviceType to s3.

Using S4

S4 is an experimental, single-replica S3-compatible store for small installs, with no high availability. Use AIStor for production. S4 requires GroundX chart 0.2.8 or later with its default images; older images can send files to AWS S3 or fail extraction.

These steps assume fileAccess.enabled is false, the chart default; with it on, the chart refuses file.username and file.password.

Run commands from the repository root. Replace the four REPLACE_WITH_... credentials in helm/values/s4/values.yaml, then install:

git clone --depth 1 --branch v0.3.2 https://github.com/rh-aiservices-bu/s4 s4-v0.3.2

helm install s4 \
  s4-v0.3.2/charts/s4 \
  -n eyelevel \
  -f helm/values/s4/values.yaml

The values pin the image by digest, use a ClusterIP Service with OpenShift Route off, and set fsGroup: 1001. The data volume defaults to 10Gi; set storage.data.size for your data. Alternatively, set s3.existingSecret to a Secret containing AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, UI_USERNAME, and UI_PASSWORD.

Connect a new GroundX install with the same S4 credentials. S4 always uses us-east-1; leave file.existing.region unset.

file:
  username: <s4-access-key>
  password: <s4-secret-key>
  existing:
    serviceType: s4
    url: http://s4.eyelevel.svc.cluster.local:7480

S4 is amd64 only. Health checks cover the UI, not its S3 port. Buckets suit thousands to tens of thousands of objects. URL-encoded keys are limited to 246 bytes (single upload) or 210 bytes (multipart), including GroundX's path prefix. Large-file import and review refuse files over 5 GiB and need temporary pod disk of about twice each upload's size. Credentials are fixed at first volume initialization; concurrent write-once uploads can overwrite each other. See S4 limits.

To replace an existing store, follow Migrating from MinIO or AIStor. Keep the original storage URL and object keys, or existing documents become unreadable. Stop uploads and wait until no documents are processing before copying; do not migrate if you cannot confirm this. The procedure applies only with fileAccess.enabled: false and grants anonymous object reads to anyone who can reach the store.

Deploying a Dedicated AIStor Object Store

If you'd like to install MinIO AIStor to your cluster, you need an AIStor license. GroundX does not ship one. The AIStor Free license covers a single server and allows commercial use but not redistribution; a store with more than one server needs a paid license (AIStor Free agreement).

These steps install the AIStor operator in namespace aistor and an object store named minio-tenant in eyelevel. With that name and TLS off, the store serves the hosts GroundX uses by default (minio and minio-tenant-hl), so GroundX needs no file settings other than the store's credentials. The chart versions are pinned to aistor-operator 6.0.0 and aistor-objectstore 1.1.0.

These steps assume fileAccess.enabled is false, the chart default; with it on, the chart refuses file.username and file.password.

Add the AIStor repository, store your license as Secret minio-license (key minio.license) in the operator's namespace, and install the operator:

helm repo add minio https://helm.min.io/
helm repo update

kubectl create namespace aistor
kubectl -n aistor create secret generic minio-license \
  --from-file=minio.license=<path-to-your-license-file>

helm install aistor-operator \
  minio/aistor-operator \
  --version 6.0.0 \
  -n aistor \
  -f helm/values/aistor/values.operator.yaml

The operator values run the operators on the eyelevel-cpu-only nodes and turn off the operator's cluster-wide pod webhook and its automatic certificate approval.

Choose the object store's root credentials and put them in Secret minio-tenant-env-configuration. The object store values read the credentials from this Secret, which keeps them out of the Helm release; the chart also refuses to create the Secret itself with the well-known pair minio/minio123.

cat > config.env <<'EOF'
export MINIO_ROOT_USER=<access-key>
export MINIO_ROOT_PASSWORD=<secret-key>
EOF
kubectl -n eyelevel create secret generic minio-tenant-env-configuration \
  --from-file=config.env
rm config.env

Set GroundX's file.username and file.password to the same two values. Then install the object store:

helm install minio-tenant \
  minio/aistor-objectstore \
  --version 1.1.0 \
  -n eyelevel \
  -f helm/values/aistor/values.objectstore.yaml

Confirm that the store started with the license in place:

kubectl -n eyelevel get objectstore minio-tenant

The install is complete when STATE reads Initialized and HEALTH reads green. Without the minio-license Secret, the operator does not create the object store: no store pods or services appear, the state reports that Secret minio-license was not found, and GroundX keeps waiting for storage. Create the Secret in aistor to let the store start.

Object Keys That Start with a Slash

Before upgrading to chart 0.2.8, a store connected as serviceType: minio that preserves leading / keys needs a key rename. MinIO, AIStor, and AWS S3 (serviceType: s3) are unaffected. Stop uploads and wait for processing to finish before renaming. Rolling back to 0.2.7 requires reversing the rename; new 0.2.8 objects may remain unreadable.

Upgrading an Existing MinIO Install to AIStor

Follow Upgrading an Existing MinIO Install to AIStor. The upgrade is permanent. Stop uploads and wait for processing to finish, then snapshot the tenant disk before uninstalling anything. Helm 3.17 or later and an AIStor license are required; multiple servers need a paid license. GroundX's EKS Terraform does not install the snapshot controller or VolumeSnapshotClass.

Restoring Community MinIO from the Pre-Upgrade Snapshot

Follow Restoring Community MinIO. The restore deletes the current volume claim, so confirm the snapshot is ready first. It loses all objects written after the snapshot, including AIStor-era writes. GroundX's database and search index are not restored; affected documents stay listed without their files and must be re-ingested.

Staying on Community MinIO

Community MinIO receives no fixes. Its default server image no longer downloads anonymously, so rescheduled pods may not start. Keep the running image in your own registry and point the tenant at that copy.

OpenSearch

Using an Existing OpenSearch Cluster

If you wish to use an existing OpenSearch cluster, you must configure the search.existing parameters in your values.yaml.

Deploying a Dedicated OpenSearch Cluster

If you'd like to install OpenSearch to your cluster, first choose the OpenSearch admin password. It must be the same value you later provide to GroundX as search.privilegedPassword in your values.yaml or as SEARCH_INIT_PASSWORD in the cluster credentials Secret (the Secret route needs groundx and process images that read it; see the notes under Configuration). Supply it to OpenSearch through a Kubernetes Secret, so the password is not written into the OpenSearch StatefulSet pod spec where anyone who can read pods in the namespace could see it. Restrict permissions before each file exists, and create it in an editor rather than with a shell command so the password is not saved to your shell history:

umask 077

Create opensearch-admin-secret.yaml in an editor with this content, then confirm it is owner-only with chmod 600 opensearch-admin-secret.yaml:

apiVersion: v1
kind: Secret
metadata:
  name: opensearch-admin
  namespace: eyelevel
type: Opaque
stringData:
  OPENSEARCH_INITIAL_ADMIN_PASSWORD: "<opensearch-admin-password>"

Apply the Secret, then delete the local file:

kubectl apply -f opensearch-admin-secret.yaml
rm opensearch-admin-secret.yaml

Create opensearch-admin.values.yaml with this content. It references the Secret instead of embedding the password, so this file holds no credential:

extraEnvs:
  - name: OPENSEARCH_INITIAL_ADMIN_PASSWORD
    valueFrom:
      secretKeyRef:
        name: opensearch-admin
        key: OPENSEARCH_INITIAL_ADMIN_PASSWORD

Then install OpenSearch with both values files:

helm repo add opensearch https://opensearch-project.github.io/helm-charts/
helm repo update

helm install opensearch opensearch/opensearch -n eyelevel -f helm/values/opensearch/values.yaml -f opensearch-admin.values.yaml

Choose a password you have not published anywhere. The GroundX chart rejects a known published default for search.password or search.privilegedPassword and fails to render if you supply one, so an upgrade that silently keeps the old default (for example helm upgrade --reuse-values) will not deploy.

OpenSearch requires OPENSEARCH_INITIAL_ADMIN_PASSWORD at every start, not only on first initialization. On an already-initialized data volume it is still read at boot, and a start without it exits with No custom admin password found (observed on image digest sha256:8e95a30f…). Keep -f opensearch-admin.values.yaml on every helm upgrade opensearch …, not just the first install, and pin the OpenSearch image to a digest so this stays reproducible. The value is consumed only to initialize an empty volume; changing it on an existing volume does not rotate the stored admin password (rotate with the backup route under Upgrading an Existing Install). The Secret must exist before OpenSearch starts, which the order above ensures.

Rotating these passwords does not by itself secure OpenSearch for production: the documented install still trusts OpenSearch's demo TLS certificates, and the GroundX application user has broad privileges. For production, also replace the demo certificates with operator-supplied ones and restrict network access to OpenSearch.

Kafka

Using an Existing Kafka Cluster

If you wish to use an existing Kafka cluster, you must configure the stream.existing parameters in your values.yaml.

Using AWS SQS

To use existing AWS SQS queues instead of Kafka, give each queue under stream.topics in your values.yaml type: sqs and the queue's url, set stream.region to the queues' AWS region (a queue can set its own region), set stream.enabled to false, and leave stream.existing empty. src/groundx/values/values.aws.services.yaml shows the five queues GroundX uses.

Deploying a Dedicated Kafka Cluster

If you'd like to install Kafka to your cluster, use the following commands below:

helm install stream-operator \
  oci://quay.io/strimzi-helm/strimzi-kafka-operator \
  -n eyelevel \
  -f helm/values/strimzi/values.yaml

Once the operator is ready, run the following command:

helm install groundx-kafka-cluster \
  groundx/groundx-strimzi-kafka-cluster \
  -n eyelevel

Installing the GroundX Application

Pre-Requisites

You must have completed the following steps before attempting to install the GroundX application:

Configuration

Instructions on how to configure GroundX On-Prem can by found in the main README.md. A set of example configurations can be found at helm/values.

For a GroundX deployment with default settings:

  1. Copy sample.values.yaml to something like values.yaml
  2. We minimally suggest updating the following values:
groundxKey      # a valid GroundX API key, to be used to look up licensing information
admin.apiKey    # admin values are associated with
admin.username  # the admin account for your deployment
admin.email
admin.password
cluster.pvClass # an existing storage class
cluster.pvAccessMode # ReadWriteMany for shared filesystems, ReadWriteOnce for block/local storage
cluster.type    # type of Kubernetes cluster
search.password           # unless mode is ingest: the OpenSearch application user password (values or Secret key SEARCH_PASSWORD)
search.privilegedPassword # unless mode is ingest: the OpenSearch admin password (values or Secret key SEARCH_INIT_PASSWORD)

The chart has no default OpenSearch passwords. When mode is not ingest, set both: each search credential can be set through values.yaml (search.password, search.privilegedPassword) or through the cluster credentials Secret (SEARCH_PASSWORD, SEARCH_INIT_PASSWORD in eyelevel-secret-credentials), as the MYSQL_* keys do for db. The sample Secret in src/groundx/prereqs/secret/values.yaml carries both keys with empty values; fill them in. The Secret route requires cluster.secrets to list eyelevel-secret-credentials, and groundx and process images that read SEARCH_PASSWORD and SEARCH_INIT_PASSWORD. Both services log in to OpenSearch: the API (groundx) to search, and the indexing worker (process) to write documents to the index. Their default images are tagged with the chart's appVersion, and images up to 0.2.7 do not read these keys. Until the chart ships images that read them, either set both passwords in values, or set both groundx.image and process.image to images built from cashbot-go with this change (EyeLevel-ai/cashbot-go#1809). With an older groundx image the API has no search password and crash-loops; with an older process image the indexing worker cannot write to OpenSearch, so ingested documents fail. Pods read the Secret only when they start, so after changing either key, restart both services. Restart groundx first and wait for it, because it updates the search.username user to the new password at startup, then restart process: kubectl rollout restart -n eyelevel deployment/groundx, kubectl rollout status -n eyelevel deployment/groundx, then kubectl rollout restart -n eyelevel deployment/process. Passwords delivered through the Secret are not render-validated by the chart, because the published-default check sees values only. The Secret route applies to the direct-helm route; the Terraform operator still takes both passwords as values, required when cluster.search is true and not needed for an ingest-only install (cluster.search = false). In mode: ingest neither is used or rendered.

Note: admin.apiKey and admin.username must be valid UUIDs. We provide a helper script to generate random UUIDs. You can run it using thefollowing command:

bin/uuid

Upgrading an Existing Install

Earlier chart versions defaulted both OpenSearch passwords to a public value. An OpenSearch data volume created with them keeps its original admin password, because the seed value is only read on first initialization. Before upgrading:

  1. Set search.privilegedPassword (or SEARCH_INIT_PASSWORD, which needs the groundx and process images described under Configuration) to the admin password your OpenSearch currently uses, unless that is a published default. The chart rejects a published default supplied through values and will not render, so if your install still uses one, first rotate the OpenSearch admin password off it with the admin-password route in step 3, then set search.privilegedPassword to the new value. When you upgrade the OpenSearch release itself, keep -f opensearch-admin.values.yaml on the helm upgrade opensearch command: the image requires OPENSEARCH_INITIAL_ADMIN_PASSWORD at every start, and a restart without it fails with No custom admin password found.
  2. Set search.password (or SEARCH_PASSWORD) to the application user password your install currently uses, unless that is a published default. The chart rejects a published default supplied through values, so if your install still uses one, choose a new application password for the upgrade. Make sure search.privilegedPassword already holds the correct admin password (from step 1 or the step 3 rotation) before changing search.password, or the GroundX API crash-loops when it re-creates search.username; confirm with the login check in step 3.
  3. Rotate the credentials. The OpenSearch admin user is reserved, so the security REST API refuses to change it (it returns 403 "Resource 'admin' is reserved"). Use these routes instead:
    • Application password: set a new search.password and upgrade, or change SEARCH_PASSWORD in the Secret and restart groundx and then process as described under Configuration. The GroundX API re-creates search.username with it, using the admin credential, when its login is rejected.

    • Admin password: open a shell in the OpenSearch pod (for example kubectl exec -it -n eyelevel opensearch-cluster-master-0 -- bash) and run these steps. Start from a backup of the stored users, not the image's internal_users.yml, because uploading that file replaces the whole stored user list and would drop every user created through the REST API, including the GroundX application user, and break search.

      1. Back up the stored security configuration: plugins/opensearch-security/tools/securityadmin.sh -backup /tmp/security-backup -icl -nhnv -cacert config/root-ca.pem -cert config/kirk.pem -key config/kirk-key.pem.
      2. Run plugins/opensearch-security/tools/hash.sh without -p so it prompts for the password and keeps it out of shell history.
      3. Put the printed hash as the admin hash in /tmp/security-backup/internal_users.yml.
      4. Upload only the users: plugins/opensearch-security/tools/securityadmin.sh -f /tmp/security-backup/internal_users.yml -t internalusers -icl -nhnv -cacert config/root-ca.pem -cert config/kirk.pem -key config/kirk-key.pem.

      The backup keeps the existing users, including the GroundX application user, so search keeps working. See the OpenSearch securityadmin documentation.

    • Then set search.privilegedPassword to the new admin password and upgrade. Confirm the rotation from inside the pod with curl -k -u admin https://localhost:9200/_plugins/_security/authinfo, which prompts for the password: the new password must succeed and the old one must be rejected.

If search.privilegedPassword does not match the real admin password, the GroundX API crash-loops with an unauthorized error when it has to create or update its OpenSearch user: on a first install, or after search.password changes. On an existing install the mismatch is otherwise silent, so run the check above. If you deploy a Terraform search object with cluster.search = true, password and root_password must be non-empty and not an angle-bracket placeholder; an ingest-only install (cluster.search = false) needs neither. The operator module now requires Terraform 1.9 or later.

Persistent Storage

Chart publication status: as of this writing, only groundx-storageclass 0.1.1 is published to registry.groundx.ai/helm -- helm search repo and a plain helm install/helm upgrade with no --version pin resolve to 0.1.1, which has no lookup-based upgrade-safety guard and does not default parameters.encrypted to "true". The 0.1.2 behavior described in the upgrade note below (encrypted-by-default EBS installs, existing-class preservation on upgrade) applies only once 0.1.2 is published; until then, pin --version 0.1.2 explicitly once it is available, and do not assume an unpinned install already has these defaults.

GroundX uses one app-wide persistent storage abstraction. Set cluster.pvClass to the Kubernetes storage class name and cluster.pvAccessMode to the access mode that class supports. Services that need PVCs, including summary inference, ranker inference, layout inference, and workspace when workspace.pvc.enabled: true, inherit those values unless their local pvc block explicitly overrides them.

Prefer a shared filesystem class with ReadWriteMany when available:

cluster:
  pvClass: eyelevel-pv
  pvAccessMode: ReadWriteMany

Use this mode when multiple pods need to share a mounted cache or model/data volume. Workspace does not require this for the primary local-git workflow, but it is useful when the secondary file API cache is configured as a PVC. Example storage class values are included for common shared filesystems:

  • EKS/EFS: src/groundx/prereqs/storageclass/values.efs.example.yaml
  • AKS/Azure Files: src/groundx/prereqs/storageclass/values.azure-files.example.yaml
  • GKE Filestore: src/groundx/prereqs/storageclass/values.gke-filestore.example.yaml

When only block or local storage is available, use ReadWriteOnce:

cluster:
  pvClass: eyelevel-pv
  pvAccessMode: ReadWriteOnce

An EKS/EBS example is available at src/groundx/prereqs/storageclass/values.ebs.example.yaml. With ReadWriteOnce, any pod family sharing the same PVC must be scheduled in a compatible shape because the volume cannot be mounted freely across nodes.

For AWS EKS, terraform/aws/setup-eks generates src/groundx/prereqs/storageclass/values.aws.local.yaml and src/groundx/values.aws.local.yaml from Terraform outputs. Use STORAGE_DRIVER=efs for the shared EFS path or STORAGE_DRIVER=ebs for EBS. The generated Helm commands printed by the script do not require manually editing the EFS filesystem ID.

Upgrade note (EBS encryption default): starting with groundx-storageclass 0.1.2, a new EBS install (provisioner ebs.csi.aws.com, or the legacy in-tree kubernetes.io/aws-ebs) renders parameters.encrypted: "true" by default -- an operator opting out sets encrypted: "false" explicitly (unquoted false, null, and "" are equivalent opt-out spellings). An already-installed StorageClass is never changed by a real helm upgrade --install: the chart reads the live class via Helm's lookup function and, when the class already exists, renders its current live parameters verbatim instead of the chart's new defaults -- helm upgrade never attempts to change a StorageClass's parameters, which Kubernetes treats as immutable once the object is created. When the class exists and any supplied parameter (encrypted, kmsKeyId, type, or a provisioner-specific one) differs from the live class, the chart's install notes print one line naming each parameter that was not applied. This lookup guard only sees a live cluster: helm template, a client-side dry run, and GitOps renderers have no live cluster to query, so those flows always render the new-install defaults -- an operator managing an existing class that 0.1.1 created without an explicit encrypted value must set encrypted: "false" explicitly to keep it unchanged. This does not work for a class that 0.1.1 created with an explicit encrypted: "false": 0.1.2 never renders an explicit false, so a no-live-cluster render omits the key, the rendered class then differs from the live one, and the apply fails on an immutable parameter. For that class, use a live-cluster helm upgrade --install (the lookup keeps the live value), stay on 0.1.1 in that flow, or create a new StorageClass. Changing an existing class's actual encryption requires creating a new StorageClass, because parameters cannot be updated in place. Pin the version explicitly (helm install groundx-storageclass groundx/groundx-storageclass --version 0.1.2 ...) once 0.1.2 is published -- an unpinned install resolves to whatever helm search repo currently reports (see the chart publication status note above), which may still be 0.1.1 and carries none of this behavior.

Helm Installation

When deploying from this checkout with an environment-specific values file, use the local source chart:

helm upgrade --install groundx src/groundx -n eyelevel -f values.ranker-only-eks.yaml

Replace values.ranker-only-eks.yaml with the values file for your target cluster. Do not set image tags manually for a normal release; workloads that do not override their image tag use the chart appVersion from src/groundx/Chart.yaml.

To install GroundX, add the chart repo to helm by running the following commands:

helm repo add groundx https://registry.groundx.ai/helm
helm repo update

Once the repo is added, you can install the GroundX application by running the following command:

helm install groundx \
  groundx/groundx \
  -n eyelevel \
  -f values.yaml

Replace values.yaml with the path to the values.yaml file you created in the previous Configuration step.

Autoscaling & Monitoring

GroundX includes built-in Horizontal Pod Autoscaling (HPA) and an optional custom metrics server.

Autoscaling is workload-aware: pods scale on pipeline throughput plus one additional metric (latency/backlog/throughput) depending on pod type.

Enabling Autoscaling (HPA)

HPA can be globally enabled for all supported pods:

cluster:
  hpa: true

If cluster.hpa is false, pods run with fixed replica counts.

Per-Pod HPA Control

You can enable or disable HPA per pod:

groundx:
  replicas:
    hpa: true

If HPA is disabled for a pod:

POD.replicas.desired

controls the replica count.

If HPA is enabled for a pod:

POD.replicas.min
POD.replicas.max

control the scaling bounds.

How Autoscaling Works

Every autoscaled pod scales on two metrics:

  1. Pipeline throughput (all pods)

    • The system estimates total pipeline throughput for files moving through GroundX.
    • Each pod defines the throughput a single replica can support.
    • Replicas increase until total pod capacity meets the estimated pipeline throughput.
  2. Pod-specific metric (by pod type)

    • api: response latency (default target 4s)
    • queue: message backlog (default target 10)
    • task: Celery task backlog (default target 10)
    • inference: model request throughput (scales when requests exceed per-replica capacity)

For GPU inference, HPA scale-up also depends on node readiness. If each inference pod uses a full GPU node, every additional replica needs both a new pod and a new GPU node before it can absorb traffic.

Enabling the Custom Metrics Server

The custom metrics server exposes:

  • Pipeline throughput
  • API latency
  • Queue backlog
  • Task backlog
  • Inference request throughput

Enable it with:

metrics:
  enabled: true

Prometheus Integration (Optional)

If using Prometheus Operator, enable the ServiceMonitor:

metrics:
  serviceMonitor:
    enabled: true

This allows Prometheus to automatically scrape the GroundX metrics endpoints.

For detailed monitoring setup, see the dedicated Monitoring README.

Using Simulated LLM Responses (Optional)

To run the system without calling OpenAI or self-hosted LLMs (useful for load testing or autoscaling validation), configure:

engines:
  default:
    engineId: test-model

extract:
  agent:
    modelId: test-model

When set, pods use simulated LLM responses instead of external model providers.

Terminal Extract Diagnostics

Terminal extract diagnostics are disabled by default. Enable the same value on the extract API, agent, download, and save pods with:

extract:
  terminalAgentTraceEnabled: true

Override one pod by setting extract.api.terminalAgentTraceEnabled, extract.agent.terminalAgentTraceEnabled, extract.download.terminalAgentTraceEnabled, or extract.save.terminalAgentTraceEnabled. An explicit pod value wins over the shared value, including false.

Use this only with an Extraction Agents image that implements the AGE-272 terminal diagnostics contract. The runtime keeps successful work unchanged, publishes Celery failure callbacks before terminal persistence, and applies the rollout's storage, access, lifecycle, and failure-budget gates.

Using GroundX On-Prem

Get the API Endpoint

Once the setup is complete, run:

kubectl -n eyelevel get svc groundx

The API endpoint will be the external IP associated with the GroundX load balancer.

For instance, the "external IP" might resemble the following:

EXTERNAL-IP
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxx.us-east-2.elb.amazonaws.com

Use the SDKs

The API endpoint, in conjuction with the admin.api_key defined during deployment, can be used to configure the GroundX SDK to communicate with your On-Prem instance of GroundX.

Note: you must append /api to your API endpoint in the SDK configuration.

from groundx import GroundX

external_ip = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxx.us-east-2.elb.amazonaws.com'
api_key="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

client = GroundX(api_key=api_key, base_url=f"http://{external_ip}/api")
import { GroundXClient } from "groundx";

const external_ip = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxx.us-east-2.elb.amazonaws.com'

const groundx = new GroundXClient({
  apiKey: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  environment: `http://${external_ip}/api`;,
});

Use the APIs

The API endpoint, in conjuction with the admin.api_key defined during deployment, can be used to interact with your On-Prem instance of GroundX.

All of the methods and operations described in the GroundX documentation are supported with your On-Prem instance of GroundX. You simply have to substitute https://api.groundx.ai with your API endpoint.

Terraform Deployment (terraform/aws/)

terraform/aws/ is an optional path for provisioning AWS infrastructure (a VPC and/or an EKS cluster) ahead of the Helm install described above — see Deployment step 1. It is also the supported path for maintaining AWS infrastructure already provisioned through it. As of November 4, 2025, the previous hybrid terraform-helm approach to deploying the GroundX application itself was retired in favor of a pure Helm release; that change is about how the application is installed onto a cluster, not about Terraform's role in provisioning the cluster, which is unaffected and remains supported for both new and existing AWS installs.

Accessing Legacy Scripts

If you would like to access the legacy terraform scripts, they can be pulled from legacy-terraform-deployment.

EKS CPU and monitoring cost controls

CPU-only nodes default to gp3 disks and one unavailable node per update. CloudWatch keeps enhanced Container Insights enabled and Application Signals disabled. See EKS cost controls before applying these settings to an existing cluster.

Optional EKS Node Diagnostics

AWS EKS deployments managed by the bundled Terraform (new or existing) can enable default-off diagnostics with one setting. See EKS Node Diagnostics.

EKS Cluster Version Configuration

terraform/aws/variables.tf's environment_internal.eks_version key controls the Kubernetes version requested for a new EKS cluster (via terraform/aws/eks/eks.tf's module "eyelevel_eks".cluster_version). Leaving the key unset (the default) passes null to the module, so AWS creates the cluster at the AWS default version rather than a version this repo selects — see the EKS CreateCluster API reference for what "the AWS default version" means; it is not necessarily the newest version EKS offers.

Owner and bump process. The declared default in terraform/aws/env.tfvars.example (currently 1.35) is owned by whoever maintains groundx-on-prem. Bump it when the currently-declared version approaches the end of its AWS EKS standard support window, so new installs land on a version still inside standard support.

What happens when standard support ends. This module does not set an EKS upgrade policy, so the outcome depends on the policy the cluster ends up with (AWS's own default for newly created clusters is EXTENDED; an existing cluster this Terraform now maintains may already carry a different policy set outside this repo):

  • EXTENDED — the cluster keeps running its current version past standard support, at an additional per-cluster hourly cost (EKS pricing), until it reaches its extended-support end date.
  • STANDARD — there is no paid extended-support period; AWS force-upgrades the cluster to the next supported version once standard support ends, whether or not that upgrade was planned.

Know which policy your cluster has (aws eks describe-cluster --name <cluster> --query cluster.upgradePolicy) so you know which of these two outcomes to expect, and budget for it.

Adopting the key on an existing cluster. setup-eks writes the key automatically: it reads Terraform state (terraform show -json) to find an existing cluster, then looks up that cluster's actual running version via aws eks describe-cluster — the declared default is only used when state shows no cluster at all. If a cluster is found in state but its running version cannot be resolved (bad credentials, missing IAM permission, wrong region, throttling), setup-eks aborts rather than silently falling back to the declared default and risking an unattended downgrade — a normal re-run is safe, an unresolvable one stops instead of guessing. An operator hand-editing env.tfvars for an existing cluster must instead:

  1. Read the cluster's actual running version first: aws eks describe-cluster --name <cluster> --query cluster.version --output text. EKS does not support control-plane downgrades, so setting a lower version than what is running is rejected.
  2. Know that this same value also drives every EKS-managed node group's AMI release selection (groundx-on-prem's node groups don't override it, so they inherit the cluster's resolved version) — changing it can trigger a managed-node-group rollout, not just a control-plane change.
  3. Review terraform -chdir=terraform/aws/eks plan before applying. bin/environment eks calls terraform apply --auto-approve with no confirmation gate, so the plan output is the only review point before a version change takes effect.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…