Skip to content

About

Kluctl GitOps examples, pinned upstream artifacts, validation and operations guides

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Kluctl GitOps

Validate

Multi-environment deployment and GitOps. Kluctl v2.28.2 with two independently rendered target namespaces and a controller reconciliation example.

Independent deployment examples maintained by imos64. Upstream software remains maintained by its respective authors. This collection does not claim a measured ranking or that every tool independently performs continuous Git reconciliation.

High-Level Architecture

The CLI renders both targets offline. For continuous GitOps, the separately installed Kluctl controller reads the same project and reconciles the selected target with the configured identity.

flowchart LR
Git["Git project and .kluctl.yaml targets"] --> CLI["Kluctl CLI: offline rendering"]
Git --> Controller["Kluctl controller: KluctlDeployment"]
Identity["delivery-reconciler service account"] --> Controller
Controller --> Staging["kluctl-demo-staging namespace"]
Controller -.-> Production["Separately configured production target"]
CLI --> Preview["Independent staging and production manifest previews"]
Loading

Local validation

Requirements: Linux amd64, Python 3.12+, Helm 3.21.3 and Make. CLI downloads are checksum-verified and placed in ignored .tools/. Internet access is needed for tools and Kubernetes schemas. Docker is needed for werf's container smoke test.

python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements-dev.txt
make validate

make render refreshes the committed controller installation preview. CI has read-only repository permissions and no deployment credentials. It checks artifact checksums, exact rendering, strict Kubernetes 1.35.0 schemas, pinned upstream custom-resource schemas and delivery guardrails. Schema validation does not execute CEL, admission webhooks or controllers, and does not establish compatibility with every cluster version.

Render independent environments

.tools/kluctl render -t staging --offline-kubernetes --print-all --no-update-check
.tools/kluctl render -t production --offline-kubernetes --print-all --no-update-check

The targets render into kluctl-demo-staging and kluctl-demo-production, with distinct Kluctl discriminators. Offline rendering does not query a cluster. Before online commands, select the intended kubeconfig context explicitly and inspect the complete diff. Namespaces alone do not replace separate production identities/cluster boundaries.

Install the matching controller with the upstream CLI only after reviewing its cluster permissions:

.tools/kluctl controller install --kluctl-version v2.28.2
kubectl apply -f bootstrap/namespace.yaml
kubectl apply -f bootstrap/delivery-rbac.yaml
kubectl apply -f examples/kluctldeployment.yaml
kubectl -n kluctl-system get kluctldeployments

The vendored CRD is a validation reference; applying only that file does not install the controller. The example uses the current spec.source.git structure, targets staging and impersonates the limited delivery service account. Pruning and deletion-on-removal are disabled. To promote production, create a separately reviewed KluctlDeployment with a distinct name, production target, suitable identity and approved Git reference.

A merge to the tracked branch changes desired state. Use protected branches or immutable promotion references. Suspend reconciliation before emergency operations; revert Git for normal rollback. Do not run an independent GitOps controller over the same workload objects or discriminator inventory. Removing the KluctlDeployment leaves workload cleanup to an explicit plan under this deletion policy.

Operations and provenance

Local validation was completed on 2026-09-07. No GitOps controller, cloud resource, external cluster registration or live delivery pipeline was deployed. See validation scope, controller ownership, and official upstream documentation.

Exact upstream URLs and artifact SHA-256 checksums are recorded in package.json. Controller versions follow the pinned upstream release/chart; demo workload images are digest-pinned. Review image digests, release notes and CRD lifecycle during upgrades. Upstream charts/manifests retain their own licensing; repository-authored integration files use MIT. Secrets and private site files must remain outside this public repository.

About

Kluctl GitOps examples, pinned upstream artifacts, validation and operations guides

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages