Coder Social home page Coder Social logo

gitops-configurer's Introduction

GitOps Configurer

Test Workflow Release Workflow The SLSA Level 3 badge The Apache 2.0 license badge Follow us on Twitter

A Carvel package providing GitOps configuration (Carvel or Flux) for the Kadras Engineering Platform. Currently, it supports a single-tenant monorepo approach where all Kubernetes manifests are stored in a single Git repository.

๐Ÿš€ย  Getting Started

Prerequisites

  • Kubernetes 1.28+

  • Carvel kctrl CLI.

  • Carvel kapp-controller deployed in your Kubernetes cluster. You can install it with Carvel kapp (recommended choice) or kubectl.

    kapp deploy -a kapp-controller -y \
      -f https://github.com/carvel-dev/kapp-controller/releases/latest/download/release.yml

Installation

Add the Kadras package repository to your Kubernetes cluster:

kctrl package repository add -r kadras-packages \
  --url ghcr.io/kadras-io/kadras-packages \
  -n kadras-system --create-namespace
Installation without package repository The recommended way of installing the GitOps Configurer package is via the Kadras package repository. If you prefer not using the repository, you can add the package definition directly using kapp or kubectl.
kubectl create namespace kadras-system
kapp deploy -a gitops-configurer-package -n kadras-system -y \
  -f https://github.com/kadras-io/gitops-configurer/releases/latest/download/metadata.yml \
  -f https://github.com/kadras-io/gitops-configurer/releases/latest/download/package.yml

Install the GitOps Configurer package:

kctrl package install -i gitops-configurer \
  -p gitops-configurer.packages.kadras.io \
  -v ${VERSION} \
  -n kadras-system

Note You can find the ${VERSION} value by retrieving the list of package versions available in the Kadras package repository installed on your cluster.

kctrl package available list -p gitops-configurer.packages.kadras.io -n kadras-system

Verify the installed packages and their status:

kctrl package installed list -n kadras-system

๐Ÿ“™ย  Documentation

Documentation, tutorials and examples for this package are available in the docs folder.

๐ŸŽฏย  Configuration

The GitOps Configurer package can be customized via a values.yml file.

type: flux-kustomization
git:
  url: "https://github.com/kadras-io/my-gitops-repo"
  path: "clusters/staging"
  secret_name: "github-token-secret"

Reference the values.yml file from the kctrl command when installing or upgrading the package.

kctrl package install -i gitops-configurer \
  -p gitops-configurer.packages.kadras.io \
  -v ${VERSION} \
  -n kadras-system
  --values-file values.yml

Values

The GitOps Configurer package has the following configurable properties.

Configurable properties
Config Default Description
namespace kadras-system The namespace where the GitOps resource should be installed.
name gitops-configurer The name of the GitOps resource.
type carvel-app The type of GitOps controller to use. Options: carvel-app, flux-kustomization.
service_account "" The ServiceAccount used by the GitOps controller to reconcile changes to the cluster.
git.url "" The URL of the Git repository to synchronize in the cluster.
git.branch main The Git branch to check out and synchronize.
git.path "" The path within the Git repository containing the manifests to reconcile with the cluster.
git.secret_name "" The name of the Secret in the same namespace holding the credentials to access the Git server. The credentials should provide read-only access to the Git server.
sync_period 1m0s The interval at which the GitOps controller should synchronize changes from Git. The format is a Go duration string. Example: 1m0s.

๐Ÿ›ก๏ธย  Security

The security process for reporting vulnerabilities is described in SECURITY.md.

๐Ÿ–Š๏ธย  License

This project is licensed under the Apache License 2.0. See LICENSE for more information.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.