Install Kivo

Kubernetes

AKS, EKS, GKE, k3s or any cluster.

Run Kivo on any Kubernetes cluster (AKS, EKS, GKE, DOKS, k3s, OpenShift…) with a managed PostgreSQL 16.

The images

ImageRole
invicly/kivo:1.0.0The app (Deployment), port 3000
invicly/kivo-migrate:1.0.0Migrations (a Job per release)

Both are public on Docker Hub and built for linux/amd64: schedule them on amd64 nodes (the nodeSelector below does that on mixed clusters). Use the same version tag for both, and pin it rather than latest. To pull through your own registry (ACR, ECR, Artifact Registry), mirror them first:

bash
docker pull invicly/kivo:1.0.0 && docker tag invicly/kivo:1.0.0 <registry>/kivo:1.0.0 && docker push <registry>/kivo:1.0.0
docker pull invicly/kivo-migrate:1.0.0 && docker tag invicly/kivo-migrate:1.0.0 <registry>/kivo-migrate:1.0.0 && docker push <registry>/kivo-migrate:1.0.0

Manifests

A minimal setup: a Secret, a migration Job per release, a Deployment, a Service and an Ingress with TLS (for example with cert-manager).

yaml
apiVersion: v1
kind: Secret
metadata: { name: kivo }
type: Opaque
stringData:
  DATABASE_URL: postgresql://kivo:change-me@<db-host>:5432/kivo?sslmode=require
  AUTH_SECRET: change-me
  AUTH_URL: https://<your-domain>
  AUTH_TRUST_HOST: "true"
  SMTP_HOST: <smtp-host>
  SMTP_PORT: "465"
  SMTP_USERNAME: <smtp-user>
  SMTP_PASSWORD: change-me
  SMTP_FROM_EMAIL: kivo@<your-domain>
  KIVO_CONTROL_URL: https://kivo-control.invicly.com
  KIVO_LICENSE_PUBLIC_KEYS: "lic-2026-09:MCowBQYDK2VwAyEAzWdTL0qB3C7ZDkfbdcn0u4MADyzGFR9suPCuNkf8mbQ="
  KIVO_INSTANCE_NAME: Kubernetes
---
apiVersion: batch/v1
kind: Job
metadata: { name: kivo-migrate-1.0.0 }
spec:
  backoffLimit: 1
  template:
    spec:
      restartPolicy: Never
      nodeSelector: { kubernetes.io/arch: amd64 }
      securityContext: { runAsNonRoot: true, runAsUser: 1001 }
      containers:
        - name: migrate
          image: invicly/kivo-migrate:1.0.0
          envFrom: [{ secretRef: { name: kivo } }]
---
apiVersion: apps/v1
kind: Deployment
metadata: { name: kivo }
spec:
  replicas: 2
  selector: { matchLabels: { app: kivo } }
  template:
    metadata: { labels: { app: kivo } }
    spec:
      nodeSelector: { kubernetes.io/arch: amd64 }
      securityContext: { runAsNonRoot: true, runAsUser: 1001 }
      containers:
        - name: app
          image: invicly/kivo:1.0.0
          ports: [{ containerPort: 3000 }]
          envFrom: [{ secretRef: { name: kivo } }]
          readinessProbe: { httpGet: { path: /api/health/ready, port: 3000 } }
          livenessProbe: { httpGet: { path: /api/health, port: 3000 } }
          securityContext: { readOnlyRootFilesystem: true, allowPrivilegeEscalation: false }
          volumeMounts: [{ name: tmp, mountPath: /tmp }, { name: cache, mountPath: /app/.next/cache }]
      volumes: [{ name: tmp, emptyDir: {} }, { name: cache, emptyDir: {} }]
---
apiVersion: v1
kind: Service
metadata: { name: kivo }
spec:
  selector: { app: kivo }
  ports: [{ port: 80, targetPort: 3000 }]
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: kivo
  annotations: { cert-manager.io/cluster-issuer: letsencrypt }
spec:
  tls: [{ hosts: [<your-domain>], secretName: kivo-tls }]
  rules:
    - host: <your-domain>
      http:
        paths: [{ path: /, pathType: Prefix, backend: { service: { name: kivo, port: { number: 80 } } } }]

Notes:

  • To update, apply a new Job with the new tag and wait for it (kubectl wait --for=condition=complete job/kivo-migrate-<new-version>) before changing the Deployment's image, or run it as a Helm pre-upgrade hook.
  • With several replicas, the built-in scheduler still runs each job once per tick. Or set SCHEDULER=off and add a CronJob that calls POST /api/cron/run with the cron secret every 5 minutes.
  • Use a managed PostgreSQL or an operator (CloudNativePG, for example) with backups; don't run the database as a plain Deployment.
  • Keep secrets in your secret manager (External Secrets, Sealed Secrets, the cloud's CSI driver) rather than in Git.

Deploy

bash
kubectl create namespace kivo
kubectl -n kivo apply -f kivo.yaml
kubectl -n kivo wait --for=condition=complete job/kivo-migrate-1.0.0 --timeout=5m
kubectl -n kivo rollout status deployment/kivo
kubectl -n kivo get ingress kivo

Then open https://<your-domain>/register, create the first workspace, and activate your key.


Next