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:
dotnet tool install --global OmniCore.Cli
occtl --versionWrite the deployment file
occtl deploy init -f omnicore.yaml --target dockerinit 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:
| Setting | What it's for |
|---|---|
spec.target | kubernetes or docker. |
spec.version | The image tag. Pin a published version in production rather than latest. |
spec.database.publicUrl | The address people and tools use to reach the database. |
spec.database.storage | The size of the database's volume. |
spec.identity.provider | omnicore (deploy OmniCore.Identity) or external. |
spec.identity.external.* | The authority, audience and client id of your own provider. |
spec.kubernetes.namespace | Created if it's missing. |
spec.kubernetes.serviceType | LoadBalancer, ClusterIP (with an ingress) or NodePort. |
The whole file is described in Docker and Kubernetes.
Apply it
occtl deploy apply -f omnicore.yamlapply 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,
applyprints 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
occtl login http://localhost:5080
occtl whoamilogin 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
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 datadelete --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.