kluctl

module
v2.24.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: Apache-2.0

README ΒΆ

kluctl

tests license release

kluctl

Kluctl is the missing glue that puts together your (and any third-party) deployments into one large declarative Kubernetes deployment, while making it fully manageable (deploy, diff, prune, delete, ...) via one unified command line interface.

Kluctl tries to be as flexible as possible, while remaining as simple as possible. It reuses established tools (e.g. Kustomize and Helm), making it possible to re-use a large set of available third-party deployments.

Kluctl is centered around "targets", which can be a cluster or a specific environment (e.g. test, dev, prod, ...) on one or multiple clusters. Targets can be deployed, diffed, pruned, deleted, and so on. The idea is to have the same set of operations for every target, no matter how simple or complex the deployment and/or target is.

Kluctl does not strictly depend on a controller and allows to use the same deployment wherever you want, as long as access to the kluctl project and clusters is available. This means, that you can use it from your local machine, from your CI/CD pipelines or any automation platform/system that allows to call custom tools.

What can I do with Kluctl?

Kluctl allows you to define a Kluctl project, which in turn defines Kluctl deployments and sub-deployments. Each Kluctl deployment defines Kustomize deployments.

A Kluctl project also defines targets, which represent your target environments and/or clusters.

The Kluctl CLI then allows to deploy, diff, prune, delete, ... your deployments.

GitOps

If you want to follow a pull based GitOps flow, then you can use the Kluctl Controller, which then allows you to use KluctlDeployment custom resources to define your Kluctl deployments.

Kluctl Webui

Kluctl also offers a Webui that allows you to visualise and control your Kluctl deployments. It works for deployments performed by the CLI and for deployments performed via GitOps.

Here is an introduction to the Webui together with a tutorial.

Where do I start?

Installation instructions can be found here. For a getting started guide, continue here.

Community

Check the community page for details about the Kluctl community.

In short: We use Github Issues and Github Discussions to track and discuss Kluctl related development. You can also join the #kluctl channel inside the CNCF Slack to get in contact with other community members and contributors/developers.

Documentation

Documentation, news and blog posts can be found on https://kluctl.io.

The underlying documentation is synced from this repo (look into ./docs) to the website whenever something is merged into main.

Development and contributions

Please read DEVELOPMENT and CONTRIBUTIONS for details on how the Kluctl project handles these matters.

Kluctl in Short

πŸ’ͺ Kluctl handles all your deployments You can manage all your deployments with Kluctl, including infrastructure related and your applications.
πŸͺΆ Complex or simple, all the same You can manage complex and simple deployments with Kluctl. Simple deployments are lightweight while complex deployment are easily manageable.
πŸ€– Native git support Kluctl has native Git support integrated, meaning that it can easily deploy remote Kluctl projects or externalize parts (e.g. configuration) of your Kluctl project.
πŸͺ Multiple environments Deploy the same deployment to multiple environments (dev, test, prod, ...), with flexible differences in configuration.
🌌 Multiple clusters Manage multiple target clusters (in multiple clouds or bare-metal if you want).
πŸ”© Configuration and Templating Kluctl allows to use templating in nearly all places, making it easy to have dynamic configuration.
⎈ Helm and Kustomize The Helm and Kustomize integrations allow you to reuse plenty of third-party charts and kustomizations.
πŸ” See what's different Always know what the state of your deployments is by being able to run diffs on the whole deployment.
πŸ”Ž See what happened Always know what you actually changed after performing a deployment.
πŸ’₯ Know what went wrong Kluctl will show you what part of your deployment failed and why.
πŸ‘ Live and let live Kluctl tries to not interfere with any other tools or operators. This is possible due to it's use of server-side-apply.
🧹 Keep it clean Keep your clusters clean by issuing regular prune calls.
πŸ” Encrypted Secrets Manage encrypted secrets for multiple target environments and clusters.

Demo

https://kluctl.io/vhs/demo-cut.mp4

Click on the link to play the video.

Directories ΒΆ

Path Synopsis
api
v1beta1
Package v1beta1 contains API Schema definitions for the gitops.kluctl.io v1beta1 API group.
Package v1beta1 contains API Schema definitions for the gitops.kluctl.io v1beta1 API group.
cmd
e2e
test-utils/http-server
This is copied from https://github.com/sosedoff/gitkit and simplified
This is copied from https://github.com/sosedoff/gitkit and simplified
install
internal
pkg
git
k8s
oci
Package oci contains OCI registry related helpers for the registries offered by the various cloud providers.
Package oci contains OCI registry related helpers for the registries offered by the various cloud providers.
tar
Package tar provides ways to manage tarball files.
Package tar provides ways to manage tarball files.
types
Package types contains types used in Kluctl projects +kubebuilder:object:generate=true
Package types contains types used in Kluctl projects +kubebuilder:object:generate=true
types/k8s
+kubebuilder:object:generate=true
+kubebuilder:object:generate=true
types/result
Package result contains result types used in Kluctl projects +kubebuilder:object:generate=true
Package result contains result types used in Kluctl projects +kubebuilder:object:generate=true
utils/flux_utils/conditions
Package conditions provides utilities for manipulating the status conditions of Kubernetes resource objects that implement the Getter and/or Setter interfaces.
Package conditions provides utilities for manipulating the status conditions of Kubernetes resource objects that implement the Getter and/or Setter interfaces.
utils/flux_utils/metrics
Package metrics contains a Recorder and helpers for recoding standard metrics for all GitOps Toolkit components.
Package metrics contains a Recorder and helpers for recoding standard metrics for all GitOps Toolkit components.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL