Giter VIP home page Giter VIP logo

flux-helloworld's Introduction

Flux HelloWorld

This example demostrate how to install and configure Flux and Helm Operator on AKS cluter.

In this example, we are deploying Istio, Nginx Ingress, Weavescope, etc with FluxCD.

This config has the following folder structure.

.
├── README.md
├── launch.config
├── launch.sh
├── namespaces
│   ├── ingress.yaml
│   ├── istio-system.yaml
│   ├── monitoring.yaml
│   └── weavescope.yaml
├── releases
│   ├── grafana.yaml
│   ├── nginx-ingress.yaml
│   ├── prometheus.yaml
│   └── weavescope.yaml
└── workloads
    ├── istio-controlplane.yaml
    ├── istio-operator.yaml
    └── ms-agentconfig.yaml

Inside the release directory there are HelmRelease defination.

The workloads directory contain workload for the chart that we deployed or additional resources to be deployed.

Prerequisite (Optional)

To setup a new AKS cluster on Azure, simple execute the launch-pad, it will create a new resources group and a new aks cluster.

./launch aks

To connect to your cluster using kubectl, run the following command (replace your-rg and your-aks with your resources group and aks name)

az aks get-credentials --resource-group <your-rg> --name <your-aks>

QuickStart (Get started with Flux using Helm)

  1. Create the fluxcd namespace:
kubectl create ns fluxcd
  1. Add FluxCD repository:
helm repo add fluxcd https://charts.fluxcd.io
  1. Install Flux by specifying your fork URL (replace fluxcd with your GitHub username):
helm upgrade -i flux fluxcd/flux --wait \
--namespace fluxcd \
--set registry.pollInterval=1m \
--set git.pollInterval=1m \
--set syncGarbageCollection.enabled=true \
--set git.readonly=true \
--set [email protected]:melvinlee/flux-helloworld
  1. Install the HelmRelease Kubernetes custom resource definition:
kubectl apply -f https://raw.githubusercontent.com/fluxcd/helm-operator/master/deploy/crds.yaml
  1. Install Flux Helm Operator with Helm v3 support:
helm upgrade -i helm-operator fluxcd/helm-operator --wait \
--namespace fluxcd \
--set git.ssh.secretName=flux-git-deploy \
--set helm.versions=v3
  1. Cleanup
./launch destroy

flux-helloworld's People

Contributors

melvinlee avatar

Watchers

 avatar  avatar  avatar

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.