Concept / Core model
Architecture overview
Kix compiles a whole Kubernetes cluster from one definition, checks how resources connect before anything reaches the API server, and deploys changes in dependency order. Read this page for an overview of Kix’s building blocks and workflow, whether you edit cluster files directly or direct a coding agent and review its plans.
One cluster model before YAML
Section titled “One cluster model before YAML”Most Kubernetes repositories split one cluster’s configuration across several tools: Helm charts for third-party software, Kustomize overlays for environments, separate YAML files for network policies and disruption budgets, and a GitOps controller to apply the result. Because no single tool sees the whole cluster at build time, cross-file mistakes like a mismatched Service selector, a missing Secret key, or a blocked port often surface only after pods fail in the cluster.
Kix sits one step before Kubernetes YAML. You describe what runs in a cluster in one place, and Kix compiles that definition locally on your laptop or in CI into standard Kubernetes manifests while recording every relationship in a single dependency graph.
From that graph, Kix checks before deployment that selectors match pods, mounted ConfigMaps and Secret keys exist, custom resources have matching definitions, and security or reliability policies pass. It also generates pod placement rules, disruption budgets, least-privilege network policies, and an exact rollout order. If you want plain YAML for inspection or another GitOps controller, Kix exports standard Kubernetes manifests that need no proprietary runtime in the cluster.
Packages, instances, contracts, and flavors
Section titled “Packages, instances, contracts, and flavors”Four building blocks separate application details from environment decisions in a Kix cluster.
A package is a reusable definition for one application or operator, such as Grafana, Valkey, or CloudNativePG. Kix ships built-in stable and experimental packages, and your repository can define local packages alongside them. A package instance is one copy of a package placed in a Kubernetes namespace with typed settings such as a domain name or storage size. You can place the same package across multiple namespaces or clusters without copying manifests.
Packages connect through outputs and contracts. When a database instance builds its Kubernetes Service and credentials Secret, it publishes outputs such as its hostname, port, and login reference. When an application declares that it needs a PostgreSQL database, both sides agree on a shared contract. Because the application reads contract fields, a development cluster can satisfy that input with an in-cluster database operator while production uses Amazon RDS or Google Cloud SQL without changing the application instance.
A cluster flavor describes the Kubernetes platform underneath, such as kind, k3s, Talos, EKS, GKE, or AKS. Choosing a flavor tells Kix whether the cluster has multiple nodes, which networking, DNS, or storage services the platform already provides, and how pods authenticate to cloud APIs. Moving a stack from a laptop kind cluster to a multi-zone cloud cluster changes the cluster’s flavor and environment settings while leaving application packages unchanged.
From local check to ordered rollout
Section titled “From local check to ordered rollout”A Kix project lives in a Git repository with a lockfile that pins the version of the Kix library (plus an optional pin file for container image digests). When you run a command in that repository, Kix reads the lockfile and runs the matching version of Kix automatically, so laptop checks and CI builds always match.
Every cluster change follows four steps. First, a local check compiles the cluster offline in seconds and reports broken references, type errors, and policy scorecard findings without cluster credentials. Second, an offline diff compares the new build against a baseline so pull requests show which packages and fields changed.
Third, a read-only plan compares the build against the live cluster, showing both planned updates and any out-of-band edits to Kix-owned fields. Fourth, deployment applies changed resources with Kubernetes Server-Side Apply. Kix updates independent branches of the dependency graph in parallel and waits for databases, certificates, and custom resource definitions to report ready before dependent workloads roll out.
Next, read Packages and clusters to see how Kix separates application packages, cluster configuration, and Kubernetes resource schemas.