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
ValidatingAdmissionPolicysupport. - 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:
$Kubeconfig = '.\.local\cluster.kubeconfig'kubectl --kubeconfig $Kubeconfig get nodesBash (Linux/macOS):
kubeconfig="$PWD/.local/cluster.kubeconfig"kubectl --kubeconfig "$kubeconfig" get nodes2. Package the chart and install its CRDs
From the repository root:
New-Item -ItemType Directory -Force .\.local\charts | Out-Nullpython .\tools\distribution_notices.py chartshelm package .\deploy\helm\kognition --destination .\.local\chartsBash (Linux/macOS):
mkdir -p .local/chartspython3 ./tools/distribution_notices.py chartshelm package ./deploy/helm/kognition --destination ./.local/chartsSet $Chart (PowerShell) or chart (Bash) to the archive just produced. The
example uses the current chart version and preserves the kubeconfig selected above:
$Chart = '.\.local\charts\kognition-0.1.0.tgz'helm show crds $Chart | kubectl --kubeconfig $Kubeconfig apply -f -Bash (Linux/macOS):
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/kognitionk8sController: 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:
.\bootstrap.ps1 -Kubeconfig $Kubeconfig -Chart $Chart ` -Values .\.local\values.yaml -Namespace kognition-system ` -WorkloadNamespace team-a -StateDirectory .\.local\kognition-install ` -ExclusiveBash (Linux/macOS), using the Go installer directly:
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:
- Checks cluster identity, required APIs, release absence and resource inventory.
- Installs the chart with the controller stopped and without workload permissions.
- Waits for admission, database migrations and the other platform services.
- Verifies admission behavior and checks that the target has not changed.
- 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:
make quickstart \ "KUBECONFIG=$kubeconfig" \ "CHART_PACKAGE=$chart" \ INSTALL_VALUES=.local/values.yaml \ WORKLOAD_NAMESPACES=team-a \ INSTALL_EXCLUSIVE=trueOn Windows, use the shim with the same variables:
.\make.ps1 quickstart "KUBECONFIG=$Kubeconfig" "CHART_PACKAGE=$Chart" ` INSTALL_VALUES=.local/values.yaml WORKLOAD_NAMESPACES=team-a ` INSTALL_EXCLUSIVE=true5. Verify the result
kubectl --kubeconfig $Kubeconfig -n kognition-system get deployments,statefulsets,jobskubectl --kubeconfig $Kubeconfig -n kognition-system rollout status ` deployment/kognition-k8s-controller --timeout=120sBash (Linux/macOS):
kubectl --kubeconfig "$kubeconfig" -n kognition-system get deployments,statefulsets,jobskubectl --kubeconfig "$kubeconfig" -n kognition-system rollout status \ deployment/kognition-k8s-controller --timeout=120sExpect 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:
.\.local\kognition-install\kognition-install.exe fresh-recover ` --plan .\.local\kognition-install\install.json ` --record '<record-name>' --writers-frozen --executors-stoppedBash (Linux/macOS):
./.local/kognition-install/kognition-install fresh-recover \ --plan ./.local/kognition-install/install.json \ --record '<record-name>' --writers-frozen --executors-stoppedConfirm 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.