Getting started

Deploy with occtl

Deploy OmniCore to Docker or Kubernetes from one OmniCoreDeployment file.

occtl deploy deploys the database, and optionally OmniCore.Identity, to Kubernetes or Docker Compose from one YAML file. The file looks like a Kubernetes custom resource (apiVersion, kind, metadata, spec), but no operator runs in the cluster: occtl reads the file and makes the target match it.

Install occtl

occtl is a .NET tool:

powershell
dotnet tool install --global OmniCore.Cli
occtl --version

Write the deployment file

powershell
occtl deploy init -f omnicore.yaml --target docker

init writes the file with every setting, its default and a comment explaining it. Use --target kubernetes for a cluster, and --identity external to use your own identity provider (such as Microsoft Entra ID) instead of deploying OmniCore.Identity.

The settings you'll most often change:

SettingWhat it's for
spec.targetkubernetes or docker.
spec.versionThe image tag. Pin a published version in production rather than latest.
spec.database.publicUrlThe address people and tools use to reach the database.
spec.database.storageThe size of the database's volume.
spec.identity.provideromnicore (deploy OmniCore.Identity) or external.
spec.identity.external.*The authority, audience and client id of your own provider.
spec.kubernetes.namespaceCreated if it's missing.
spec.kubernetes.serviceTypeLoadBalancer, ClusterIP (with an ingress) or NodePort.

The whole file is described in Docker and Kubernetes.

Apply it

powershell
occtl deploy apply -f omnicore.yaml

apply checks the file first and explains every problem it finds. Then it creates or updates everything and waits until both servers answer their health checks.

On the first deployment, apply prints the initial admin password once. Store it somewhere safe then: occtl doesn't keep it.

Re-applying an unchanged file changes nothing. Changing the version, the settings or the storage rolls the servers. --dry-run prints the Kubernetes objects or the compose file without changing anything.

Sign in

powershell
occtl login http://localhost:5080
occtl whoami

login asks the server how it's secured and opens a browser to sign in. With OmniCore.Identity you can also sign in with a username and password: occtl login http://localhost:5080 --password -u admin@omnicore.local.

Check and remove

powershell
occtl deploy status -f omnicore.yaml   # the workloads, whether they're ready, and whether each URL answers
occtl deploy delete -f omnicore.yaml   # removes the workloads and services, and keeps the data

delete --purge also deletes the volumes and the bootstrap secret, which loses every entity, the directory and all plugins. It asks you to type the deployment's name unless you give --yes.

Next