Plan an installation
Choose between your own machine, a single host and Kubernetes, size the installation, and prepare what every installation needs.
Workspaces, sign-in, sources, search and Corfedo AI work the same in every deployment. Deployments differ in scale and in what you run.
Choose a deployment
| Deployment | Runs on | Choose it for |
|---|---|---|
| Your own machine | Docker on your computer, at https://corfedo.localhost. See Get started. | Trying Corfedo on your own repositories |
| Single host | One Linux machine with Docker Compose. The installer sets up PostgreSQL, index storage, HTTPS and, if you want, an account service. | One installation for a team, with as many repositories as one search node holds in memory |
| Kubernetes | Your cluster, with the Helm chart. You provide PostgreSQL, an S3-compatible bucket, cert-manager, an ingress and your identity provider. | Search that stays available while a node restarts, and more repositories than one machine holds |
What decides it
- Index size. A search node serves as many indexes as fit its memory. A single host has one search node, which gets half of the memory Docker reports. On Kubernetes you add search nodes.
- Availability. A single host stops for each update and each recovery set. On Kubernetes, two search nodes serve two copies of each repository by default, so a node restarts without a gap. To survive losing a machine or zone, spread the nodes with pools. Changed values replace only the pods they affect. An upgrade to a new version stops Corfedo in both.
- What you run. On a single host the installer manages certificates, the database, recovery sets and updates. On Kubernetes you run PostgreSQL, the bucket and the certificate issuer, and their backups are yours.
Size a single host
| Resource | Recommended | What uses it |
|---|---|---|
| Memory available to Docker | 8 GiB | Half goes to the search node, so more memory lets it hold more repositories. |
| CPUs available to Docker | 2 | — |
| Free disk | 45 GiB | About 5 GB for the images and databases. The storage budget for indexes, 32 GiB by default, which the installer requires free with 8 GiB more. With less space, lower it with --storage-gib. The indexer's repository copies, at most 10 GiB, removed first when less than 5 GiB is free. |
Install on a single host lists what the installer checks.
Size a Kubernetes installation
- Search node memory. The default limits suit a development stack. Set each search node's limit for the indexes it serves.
- Copies. Every repository has two copies by default, so the nodes hold each index twice. One copy holds more, but a repository can't be searched while its node restarts.
- Search node volumes. Each holds a cache of the node's copies and needs speed, not durability. Local NVMe disks are fastest.
- Index storage.
storage.budgetGiBis the part of the bucket that indexes may use, at least 16 GiB. - Database. The chart's default sizes need 635 PostgreSQL connections.
Sizing and search nodes sets these values.
When to move to Kubernetes
- Indexed repositories show Unavailable because the search node cannot hold every index, and the host has no more memory.
- The stops for updates and recovery sets no longer fit your users' working hours.
- Search must keep working when one machine or zone fails.
No tool moves a single-host installation to Kubernetes. Install on Kubernetes, then set up the workspace, sign-in and sources again.
What a single host and Kubernetes need
- Code hosts. The installation reaches your forges to list repositories and fetch commits.
- An identity provider. Your organization's OpenID Connect provider, reachable at its issuer address. A single host can use the bundled account service instead.
- An AI provider, when you use Corfedo AI.
- A host name with DNS and a certificate.
- Outbound HTTPS to these services and to the addresses that describe coding agents and the CLI. Data handling lists what each receives.
Run an installation
What a self-hosted Corfedo installation is, which deployment to choose, and where its settings and security are described.
Install on a single host
What a Corfedo host needs, and how to install Corfedo on it with the installer, choose certificates and sign-in, and run it unattended.