Code Monkey home page Code Monkey logo

flux's Introduction

FluxCD demo

This is a sample demonstration of possibility to deploy HA Kafka to K8S a GitOps way.

Techologies involved:

  • FluxCD Toolkit
  • kustomize
  • Strimzi Kafka operator
  • Helm
  • Git
  • and Kubernetes, obviously.

Installation instructions

Requirements

  1. Git client
  2. Kubernetes cluster admin access
  3. Github or Gitlab token (with write access to your repo)

Install the Flux CLI

Follow the steps in documentation

Install Flux to cluster

Asuming you want to integrate with your Github account:

  1. Fork this repositiory to your personal account
  2. Run the following command:
export GITHUB_TOKEN=<your-github-token>
flux bootstrap github --owner=<your-github-name> \
  --repository=flux \
  --branch=master \
  --path=./clusters/stg3
  --personal
  --token-auth

Command will create repo github.com/<your-github-name>/flux and installs FluxCD components to cluster.

Wait and watch what happens

Reconcilation process should start when FluxCD components are deployed and git repository starts to be periodically scanned for changes. First, the Kafka operator is deployed to operators namespace. Then kafka-related custom resources will be installed (after kustomize transformation valid for stg3 cluster) and Kafka cluster comes to life and Kafka topics are registred.

Clone your repo and play

Clone your forked repo and do some changes. Refer documentation for examples, how the Flux CLI help you when creating new resources. Or you can modify existing ones, it's up to you.

When you finish your changes, commit them to your git repo. Eventually, the Flux source controller will notice the repo change and trigger requested actions.

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.