A machine-readable index of this documentation for AI agents is available at https://kubevela.io/llms.txt. Markdown versions of documentation pages are available by appending .md to their URLs.
Skip to main content
Version: v1.10

Overview of GitOps

GitOps is a way of delivering applications where a Git repository holds the declarative configuration, and a tool in the cluster keeps the cluster in step with it. You change what runs by merging a commit or a pull request, not by running commands against the cluster.

What a GitOps tool does with an Application​

A KubeVela Application is a plain Kubernetes custom resource. Your GitOps tool applies it from Git like any other manifest, and the KubeVela controller takes it from there. So any tool that applies manifests from a repository works: FluxCD, Argo CD, or a CI job that runs kubectl apply.

The GitOps tool owns one object, the Application. KubeVela owns everything the Application renders: Deployments, Services, cloud resources and so on, in whichever clusters you deliver to.

What KubeVela adds​

Applying plain manifests from Git declares the end state and stops there. With an Application in Git, you also get:

  • A delivery workflow. Steps run in order or as a dependency graph, with manual approval, notifications and conditions, rather than every resource landing at once. See the workflow overview.
  • Multi-cluster delivery. One Application in one repository can place components across clusters, with per-environment overrides. See Multi Cluster Application.
  • Health. KubeVela checks the health of each component and trait whose definition sets a health policy, and reports it in the Application's status, so vela status <app> (or your GitOps tool's view of the Application) tells you whether the delivery worked, not just whether it was applied.
  • Higher-level abstractions. Developers write components and traits; platform teams own the definitions behind them, including cloud resources.

Pick your tool​

  • FluxCD: enable the fluxcd addon and follow GitOps with FluxCD. It covers syncing a configuration repository and updating images automatically.
  • Argo CD or another tool: commit the Application YAML to the repository your tool watches. Two things are worth knowing:
    • Each time the Application's spec changes, KubeVela runs its workflow again. To decide exactly when a deploy happens, set the app.oam.dev/publishVersion annotation and have your CI change it. See Publish Version and How to control Application version in GitOps.
    • KubeVela writes some annotations onto the Application itself: the controller sets oam.dev/kubevela-version, and with authentication on, the webhook sets app.oam.dev/group, plus app.oam.dev/username when authentication.withUser is on. Leave these out of the YAML in Git; KubeVela sets them.