> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mixpeek.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Install customer-hosted

> Prepare your Kubernetes cluster, qualify it, create the Secret and install the Mixpeek chart, then fix what the qualification report flags.

Install Mixpeek into a namespace on your EKS or GKE cluster and confirm it can process and search a document. What runs where, the permissions and the data flow are on [Customer-hosted Mixpeek](https://docs.mixpeek.com/docs/production/customer-hosted.md); read that first if you are evaluating.

## Prerequisites

### Cluster

* **KubeRay 1.1 or newer**, installed cluster-wide or watching the namespace you grant. Mixpeek does not install it. Kubernetes 1.33 or newer is optional and enables in-place pod resizing for Ray's autoscaler.
* **One namespace** (`mixpeek` by default) and permission to create the install kit's six objects in it.
* **A `ResourceQuota`** you accept. One ships with the kit; change the numbers and Mixpeek sizes batches to fit.

### Compute

* **Node capacity** the namespace can schedule onto. Tell Mixpeek the node labels and taints to target; they are rendered into the deployment.
* **Worker size:** each Ray worker replica needs at least **11 CPU and 28 GiB** available to Ray. The head starts with `num-cpus: 0` and runs only the Serve HTTP proxy, so all 13 Serve applications land on workers. Let autoscaling add workers for batch work.
* **The idle floor:** 3 of the 13 applications stay warm (the engine entry point, the work runtime and the text embedding model) and reserve 7.20 CPU. At their replica minimums the 13 reserve **0.85 CPU sitting idle**, and 32.20 CPU at maximum replicas. These are logical Ray reservations for the engine alone, before the API, Redis and MongoDB. The other applications start on first use; that call gets `503` with a `Retry-After` header. Set `min_replicas` in your values to keep one warm.
* **GPU nodes** at a known NVIDIA driver baseline. None of the 13 Serve applications requests a GPU; GPU extractors take one through the batch path. A cluster without GPU nodes installs healthy and fails at extraction time.
* **Disk:** about **60 GB of image storage** per node before its own workload. The platform image (API and MVS) is 4.96 GB in the registry and 14.2 GB unpacked; the engine image is about 15.4 GB unpacked. A cold pull takes minutes (130 seconds measured for the platform image on a well-connected VM).

### Storage

* **Object storage** (S3 or GCS) reachable from the namespace. MVS keeps its durable state here; this is the load-bearing requirement.
* **A CSI storage class** that provisions PersistentVolumes surviving pod restarts and rescheduling. Redis runs as a StatefulSet with `volumeClaimTemplates`. MVS keeps only its unreplayed write-ahead window, in a local `emptyDir`.
* **Throughput and IOPS** above the floor Mixpeek gives you for your workload size.

> [!WARNING]
>
> A stock EKS 1.31 cluster cannot provision a PersistentVolume. Its `gp2` StorageClass is not marked default and uses the in-tree `kubernetes.io/aws-ebs` provisioner that Kubernetes removed in 1.31, and the EBS CSI driver is not a default addon. `kubectl get storageclass` shows it anyway. Install the `aws-ebs-csi-driver` addon and mark a class default before installing. GKE ships a working default.

### MongoDB

The chart ships Redis and does not ship MongoDB. Provide one the namespace can reach, managed or self-run, inside or outside the cluster. Mixpeek stores metadata there (objects, collections, batches, retriever definitions) and, on a fully self-hosted install, the six control-plane collections. It holds records and references, not media, so it stays small next to the index. The driver is pymongo 4.9 and Mixpeek tests against current MongoDB; tell Mixpeek if you plan an older version or a wire-compatible service so it can be qualified.

### Networking and identity

* Egress from the namespace to your object storage and, on a managed control plane, to Mixpeek's control plane.
* Egress to `huggingface.co` on first start, or a pre-baked image ([details](https://docs.mixpeek.com/docs/production/customer-hosted.md#what-leaves-your-account)). Without either, Ray reports healthy and the reranker, SigLIP, MiniLM and CLAP applications never load.
* In-cluster DNS and pod-to-pod routing. A default-deny `NetworkPolicy` with no allow rule for Mixpeek leaves a namespace that looks healthy and cannot talk to itself.
* Optional workload identity (GKE Workload Identity, EKS IRSA or AKS Workload Identity) so pods reach cloud resources without static keys.
* Image pull access to the Mixpeek images: a pull secret in the namespace, or a mirror in a registry your nodes trust.

## Install

**1. Qualify the bare cluster**

Run the substrate suite with a kubeconfig. It needs only `kubectl` and `python3`. Ask Mixpeek for the CPU and memory your configuration needs; without them the capacity row skips.

```bash Substrate qualification theme={null}
# read-only
python3 substrate_e2e.py --namespace mixpeek

# with the storage probe: one 1Gi PVC and short-lived pods, all deleted afterwards
python3 substrate_e2e.py --namespace mixpeek --allow-provision \
  --require-cpu 8 --require-memory 32Gi
```

Fix every `FAIL` using [What goes wrong](#what-goes-wrong) and read every `WARN` before going on. `INCOMPLETE` means some rows could not run; it is not a pass.

**2. Install KubeRay if the report shows it absent**

Your platform team installs it once with the Helm command Mixpeek publishes, or grants Mixpeek `create` on `customresourcedefinitions`, `clusterroles` and `clusterrolebindings` to do it. `crd-install-grant` in the report says who can.

**3. Apply the install kit**

```bash Apply the kit theme={null}
kubectl apply -k .
```

This creates the `mixpeek-submitter` ServiceAccount, the `rayjob-manager` and `ray-autoscaler-generation-stable` Roles and bindings, and the `ResourceQuota`. To use a namespace other than `mixpeek`, first edit the `namespace:` line in `kustomization.yaml` and the Group subject `system:serviceaccounts:mixpeek` in `role-ray-autoscaler.yaml`, which kustomize does not rewrite. Do not pass `-n`: kustomize pins the namespace and kubectl refuses the mismatch object by object.

**4. Create the Secret**

The chart does not create any Secret. Every workload reads `envFrom: secretRef: mixpeek-engine-secrets`, so create it in the namespace first; without it pods do not start. The settings are in [Create the Secret](#create-the-secret) below.

**5. Install the chart with your overlay**

`values.yaml` is an all-off skeleton (`enabled: false` for api, mvs, ray and redis). Mixpeek ships an install-values overlay written for your environment, and that overlay is what turns components on and decides what runs. Review the overlay, not `values.yaml`: a default under a disabled component is not one you get.

```bash Install or upgrade theme={null}
helm upgrade --install mixpeek ./chart --namespace mixpeek -f install-values.yaml
```

> [!WARNING]
>
> `platform` must match your distribution. `gke` keeps GKE-specific defaults; anything else turns them off. Left at `gke` on EKS, the install succeeds and Deployments sit at 0 Ready with healthy containers, because a `readinessGates` entry names `cloud.google.com/load-balancer-neg-ready`, which nothing outside Google sets. gcsfuse mounts leave pods in `ContainerCreating`, and the `BackendConfig` and GMP `PodMonitoring` API groups do not exist off GKE, so `helm install` fails. Only `api.yaml` and the three observability templates branch on `platform`; the generated Ray cluster spec writes GKE node selectors, which Mixpeek replaces for you on other distributions.

**6. Run the Ray suite**

With the plane installed, Mixpeek runs the 20-check Ray suite (security, connectivity from inside the cluster, scheduling, autoscaling, failure recovery, isolation and a `golden-e2e` document from ingestion to retrieval) and sends you the report.

> [!WARNING]
>
> Batch job submission to the Ray dashboard carries no credential: the API submits to a bare `http://host:port`, so network reachability is the whole access control. Keep the dashboard port (8265) off any public ingress and restrict it with a NetworkPolicy.

## Create the Secret

These keys name your infrastructure. Each has a built-in default that points at Mixpeek's own buckets and projects, so leaving one out does not fail at start: the component talks to a resource you do not own, your credentials cannot open it, and the error names Mixpeek's resource. Data does not cross tenants, and the error gives you nothing to act on.

| Key | Set it to | If omitted |
| - | - | - |
| `AWS_BUCKET` | The bucket for your source objects and extraction artifacts | `NoSuchBucket` naming a bucket you never created |
| `AWS_PUBLIC_BUCKET` | The bucket for publicly addressable assets | Same |
| `MONGODB_API_DB` | The database name in your MongoDB | Data goes to a database named for Mixpeek's dev environment |
| `GOOGLE_BUCKET_NAME` | Your GCS bucket, if you enable Google-backed extractors | Uploads target a Mixpeek bucket name |
| `GEMINI_PROJECT_ID` | Your GCP project, if you enable Gemini inference | Inference targets a Mixpeek project your credentials cannot open |
| `GCS_STORAGE_BUCKET` | Your GCS bucket for processed artifacts, with Google-backed storage | Writes target a Mixpeek bucket name |
| `S3_VECTORS_BUCKET_NAME`, `S3_VECTORS_LOCAL_BUCKET` | Your buckets, if you use the S3 vector backend | Vector writes target a Mixpeek bucket name |
| `LANGSMITH_PROJECT` | Your project, if you enable tracing | Traces go to a Mixpeek project |
| `ENGINE_HEAD_SVC` | Only if you run the engine outside this release; the chart derives it otherwise | Resolves to a hostname in Mixpeek's namespace |

| Key | Notes |
| - | - |
| MongoDB connection string | The API takes its whole environment from this Secret, so the URI goes here, not in chart values |
| `AWS_ENDPOINT_URL` | Your S3-compatible endpoint; leave unset only for AWS S3 |
| `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_REGION` | Credentials and region for that endpoint |
| `MIXPEEK_PRIVATE_TOKEN` | A value you generate; the API and engine authenticate to each other with it, so use the same value for both |
| `SENTRY_DSN` | Set to `""` to stop error reports going to Mixpeek's Sentry project, or to your own DSN. Leaving it unset does **not** disable it |

Mixpeek's internal Secret has about 120 keys, mostly integrations you do not need (payments, support, analytics, social connectors). Set only what you use; anything left unset stays off, except `SENTRY_DSN`. Product analytics (PostHog) is off without a key, and every `CONTROL_PLANE_*` setting is unset unless you use the managed control plane.

## Customize scheduling

The chart renders the `rayClusterConfig` from values, so anything a Kubernetes pod template can express reaches the cluster unmodified.

| | Accepted |
| - | - |
| Node selectors, per worker group | Yes |
| Tolerations | Yes, merged with the ones GPU groups need |
| Affinity and anti-affinity | Yes, rendered verbatim |
| `priorityClassName`, `schedulerName` | Yes |
| Extra labels and annotations on the pod template | Yes |
| `topologySpreadConstraints` | Yes |
| Sidecar injection by your mesh | Yes; Mixpeek registers no admission webhooks |
| Resource requests and limits | Negotiated: too small means a Pending pod, not a slower one |
| Replacing Mixpeek's container image | No; the pinned runtime is what lets Mixpeek upgrade without your change window |

If you replace the cluster config, keep the `serve_node` custom resource declared in `rayStartParams` on both node groups, and keep Kubernetes requests equal to limits: Ray reads its CPU count from the limit.

## Check it worked

```bash Ray status theme={null}
kubectl get rayservice -n mixpeek
```

`SERVICE STATUS` should be set and `NUM SERVE ENDPOINTS` above zero. Then call `GET /v1/health/deep` on your API with an organization API key (see [Monitoring](https://docs.mixpeek.com/docs/production/monitoring.md#check-health)), and run a smoke test: create a namespace, bucket and collection, upload one object, let its batch complete, and execute a retriever.

## What goes wrong

### After install: a batch will not start

`Engine submission failed ... [Errno 111] Connection refused` means the API reached an address where nothing listens. The message names the address. Check in order:

1. **No Serve endpoint yet.** `kubectl get rayservice -n mixpeek` shows blank `SERVICE STATUS` and `NUM SERVE ENDPOINTS`: the engine is still importing or cannot schedule.
2. **No Ray worker.** `DESIRED WORKERS` exceeds `AVAILABLE WORKERS`. A worker whose requests exceed its limits is refused by the API server, so no pod exists, and `RayClusterProvisioned` still reads `True`. Read the reason:

   ```bash Worker failure reason theme={null}
   kubectl get raycluster -n mixpeek \
     -o jsonpath='{.items[0].status.conditions[?(@.type=="ReplicaFailure")].message}'
   ```
3. **Applications have nowhere to go.** A custom cluster config dropped the `serve_node` declaration; the `RayService` sits in `Initializing` and nothing reports an error.
4. **Wrong address.** `kubectl exec -n mixpeek deploy/api -- env | grep ENGINE_API` shows what the API resolved. The chart points it at a head-only Serve service on purpose: KubeRay labels every pod `ray.io/serve=true`, but only the head runs the proxy.

### Qualification rows

> [accordion] Substrate rows
>
> | Row and result | Meaning and fix |
> | - | - |
> | `pvc-durability` FAIL, empty on second pod | Writes do not survive the pod. Disqualifying: the claim bound to something ephemeral or the provisioner is not provisioning |
> | `pvc-durability` FAIL, another run's marker | The volume carried data the suite did not write; check whether the class hands out pre-existing volumes |
> | `pvc-durability` SKIP | The identity cannot create PVCs and pods; rerun with `create` on `persistentvolumeclaims` |
> | `storage-class` FAIL, none exists | Nothing can provision a PersistentVolume |
> | `storage-class` WARN, no default | A PVC without `storageClassName` never binds; tell Mixpeek which class to render |
> | `storage-class` WARN, no expansion | An outgrown volume must be replaced, not expanded |
> | `storage-throughput` WARN, no floor | Measured, nothing asserted; pass `--require-write-mbps` with the floor Mixpeek gives you |
> | `storage-throughput` FAIL | Below the floor on a fresh volume's burst; sustained indexing is slower. On capacity-sized classes (`pd-balanced`, `gp3` without provisioned IOPS) a larger volume often fixes it |
> | `workload-identity` WARN | No ServiceAccount bound to a cloud identity; static keys would be needed. The row reads annotations only; the Ray suite's `object-storage` row tests end to end |
> | `crd-install-grant` WARN | Your team installs and upgrades KubeRay; supported |
> | `namespace-grant` FAIL | A verb the install needs is missing; the row names it. An install would fail partway |
> | `pod-security` WARN, `restricted` | Tell Mixpeek before install so the chart renders a compliant `securityContext` (non-root, `seccompProfile`, no added capabilities) |
> | `node-capacity` FAIL | Not enough untainted capacity. Give Mixpeek the tolerations if it should use the tainted nodes listed |
> | `node-capacity` SKIP | Pass `--require-cpu` and `--require-memory` |
> | `kuberay` WARN, not installed | Expected before install; see step 2 |

> [accordion] Ray suite rows
>
> | Row and result | Meaning and fix |
> | - | - |
> | `ray-reachable` UNREACHABLE | The dashboard did not answer: not exposed, a dead port-forward, or the wrong cluster. Check `/api/version` on the dashboard address from where the suite runs |
> | `fingerprint` mismatch | Two different clusters are involved |
> | `kuberay` FAIL | CRDs not served or below 1.1; check `kubectl get crd rayjobs.ray.io` |
> | `rbac-minimal-sa` FAIL, forbidden verb allowed | You granted too much, usually through a pre-existing binding or a reused ServiceAccount |
> | `rbac-minimal-sa`, every answer `no` | The running identity cannot impersonate; rerun with one that can |
> | `rayjob-cr-secrets` FAIL | Credentials are readable from `RayJob` specs. Batch jobs use `secretKeyRef` only when `rayjob-manager` can read the engine Secret; check that its `resourceNames` matches your Secret's name |
> | `network-policy` WARN, none | Unrestricted egress; a legitimate choice if made on purpose |
> | `network-policy` WARN, podSelector unresolved | Confirm the policy selects Mixpeek's pods |
> | `registry-pull` FAIL | Your nodes cannot pull: add an `imagePullSecret` or mirror the image |
> | `registry-pull`, `scheduling`, `failure-recovery` SKIP | The identity cannot create pods, by design of the submitter Role; rerun those rows as one that can |
> | `object-storage` WARN, static keys | Reachable, but workload identity is not in use yet |
> | `control-plane` never reported | Egress blocked by a NetworkPolicy, firewall or a private endpoint without a route |
> | `engine-on-target` FAIL | The engine reached runs on a different cluster |
> | `scheduling`, untolerated pod landed | Your taint is not honored |
> | `scheduling`, refused without a taint reason | Blocked by something else, usually CPU; the taint was not exercised |
> | `scheduling`, 999-CPU pod accepted | No effective `ResourceQuota` |
> | `autoscaling` SKIP | Pass your `maxReplicas` |
> | `autoscaling` past `maxReplicas` | Ray is not honoring your ceiling; escalate |
> | `autoscaling` never scaled down | Idle workers; check `idleTimeoutSeconds` |
> | `failure-recovery` FAIL | Two faults gave the same diagnosis, or one never settled; the row names them |
> | `serve-lifecycle` FAIL | One of your Serve applications moved; must never happen on a shared cluster |
> | `serve-lifecycle`, `non-interference` INCONCLUSIVE | Something moved before Mixpeek wrote anything; rerun when the cluster is quiet |
> | `non-interference` FAIL | A foreign app, job or actor changed; the row names it |
> | `cleanup` FAIL | Residue after uninstall; the row lists it |

## Related

* [Customer-hosted Mixpeek](https://docs.mixpeek.com/docs/production/customer-hosted.md): architecture, permissions, data flow and qualification
* [Monitoring and troubleshooting](https://docs.mixpeek.com/docs/production/monitoring.md): health checks and batch diagnosis
* [Deployment options](https://docs.mixpeek.com/docs/production/deployment.md): Mixpeek Cloud and dedicated alternatives


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.