Skip to content

Kubernetes setup

The fresh installer completes platform setup in one operation. It installs the admission and database components, checks their readiness and security behavior, then starts the controller. It does not configure model providers or install sample workloads.

For AKS authentication and image-registry setup, follow AKS setup.

1. Prepare the cluster and images

You need:

  • An explicit kubeconfig and installation permissions for namespaces, RBAC, admission policies and Kubernetes impersonation used by the admission checks.
  • A Kubernetes version with ValidatingAdmissionPolicy support.
  • cert-manager and Cilium installed, with their APIs available.
  • The Kognition images for the chart version, accessible to the cluster.
  • Dedicated installation and Agent namespaces. The installer can create missing namespaces, but refuses existing releases and workloads.
  • The Go version declared in go.mod, Helm 3 and kubectl.
  • Python 3.12 or newer for chart notice preparation when packaging from source.

Build and publish images separately, or use your organization’s published release. Pin the controller image by digest. Provider credentials are not required to install the platform. Do not enroll namespaces containing unrelated credentials.

Select the target kubeconfig before running the cluster commands:

Terminal window
$Kubeconfig = '.\.local\cluster.kubeconfig'
kubectl --kubeconfig $Kubeconfig get nodes

Bash (Linux/macOS):

Terminal window
kubeconfig="$PWD/.local/cluster.kubeconfig"
kubectl --kubeconfig "$kubeconfig" get nodes

2. Package the chart and install its CRDs

From the repository root:

Terminal window
New-Item -ItemType Directory -Force .\.local\charts | Out-Null
python .\tools\distribution_notices.py charts
helm package .\deploy\helm\kognition --destination .\.local\charts

Bash (Linux/macOS):

Terminal window
mkdir -p .local/charts
python3 ./tools/distribution_notices.py charts
helm package ./deploy/helm/kognition --destination ./.local/charts

Set $Chart (PowerShell) or chart (Bash) to the archive just produced. The example uses the current chart version and preserves the kubeconfig selected above:

Terminal window
$Chart = '.\.local\charts\kognition-0.1.0.tgz'
helm show crds $Chart | kubectl --kubeconfig $Kubeconfig apply -f -

Bash (Linux/macOS):

Terminal window
chart='./.local/charts/kognition-0.1.0.tgz'
helm show crds "$chart" | kubectl --kubeconfig "$kubeconfig" apply -f -

Install cert-manager through your cluster’s normal dependency-management process before continuing.

3. Configure the release

Create a private values file such as .local/values.yaml. Use the registry and digests for your published images:

global:
imageRegistry: registry.example.com/kognition
k8sController:
image:
digest: sha256:<controller-image-digest>
agentImage: registry.example.com/kognition/kognition-agent-runtime@sha256:<runtime-image-digest>

The remaining image tags default to the chart’s application version. Configure them explicitly when publishing under another tag. See chart values.

The fresh installer supplies the Cilium isolation and node-health policies, selects the requested workload namespaces and generates new default credentials once. To use external databases or pre-provisioned Secrets, configure their existing-secret references in the values file.

4. Install

Choose the namespaces and ensure no other installer, GitOps process or workload writer changes them during this operation:

Terminal window
.\bootstrap.ps1 -Kubeconfig $Kubeconfig -Chart $Chart `
-Values .\.local\values.yaml -Namespace kognition-system `
-WorkloadNamespace team-a -StateDirectory .\.local\kognition-install `
-Exclusive

Bash (Linux/macOS), using the Go installer directly:

Terminal window
go run ./tools/kognition-install fresh \
--kubeconfig "$kubeconfig" --chart "$chart" \
--values ./.local/values.yaml --namespace kognition-system \
--workload-namespaces team-a --state-dir ./.local/kognition-install \
--exclusive

-Exclusive / --exclusive confirms that coordination. The installer:

  1. Checks cluster identity, required APIs, release absence and resource inventory.
  2. Installs the chart with the controller stopped and without workload permissions.
  3. Waits for admission, database migrations and the other platform services.
  4. Verifies admission behavior and checks that the target has not changed.
  5. Grants the reviewed controller permissions, starts it and verifies its rollout.

The installation record is generated by the command. No manually authored activation report is needed for a fresh installation.

Alternative entry points

Use one entry point for the installation; these commands are alternatives to the installation commands above.

With GNU Make:

Terminal window
make quickstart \
"KUBECONFIG=$kubeconfig" \
"CHART_PACKAGE=$chart" \
INSTALL_VALUES=.local/values.yaml \
WORKLOAD_NAMESPACES=team-a \
INSTALL_EXCLUSIVE=true

On Windows, use the shim with the same variables:

Terminal window
.\make.ps1 quickstart "KUBECONFIG=$Kubeconfig" "CHART_PACKAGE=$Chart" `
INSTALL_VALUES=.local/values.yaml WORKLOAD_NAMESPACES=team-a `
INSTALL_EXCLUSIVE=true

5. Verify the result

Terminal window
kubectl --kubeconfig $Kubeconfig -n kognition-system get deployments,statefulsets,jobs
kubectl --kubeconfig $Kubeconfig -n kognition-system rollout status `
deployment/kognition-k8s-controller --timeout=120s

Bash (Linux/macOS):

Terminal window
kubectl --kubeconfig "$kubeconfig" -n kognition-system get deployments,statefulsets,jobs
kubectl --kubeconfig "$kubeconfig" -n kognition-system rollout status \
deployment/kognition-k8s-controller --timeout=120s

Expect the controller and admission deployments to be ready and migration Jobs to have completed. A stopped controller after an error is a failed installation, not the expected final result.

Retain the state directory privately: it contains captured values, credentials, manifests and the exact installer executable needed for recovery. Do not commit it.

Next steps and existing releases

Configure a model in the workload namespace, then follow First agent. The installation verifies platform startup; it does not prove a model invocation.

The fresh command refuses existing or failed Helm release history. For upgrades, data migration or partial installations, use the installation and recovery procedure. Preserve the original error and state; do not use a reset or forced finalizer removal as a retry procedure.

If failure occurred after an activation record was printed, the retained installer supports first-install recovery:

Terminal window
.\.local\kognition-install\kognition-install.exe fresh-recover `
--plan .\.local\kognition-install\install.json `
--record '<record-name>' --writers-frozen --executors-stopped

Bash (Linux/macOS):

Terminal window
./.local/kognition-install/kognition-install fresh-recover \
--plan ./.local/kognition-install/install.json \
--record '<record-name>' --writers-frozen --executors-stopped

Confirm that the earlier installer has stopped and no other writers are running before using those flags. Recovery refuses user workloads, removes only the transaction’s recorded permissions/probes and leaves the controller stopped. Earlier bootstrap failures use the claim UID printed by the installation recovery command.