GitOps for k8s
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Stefan Prodan 8f4de49744 Fix typo in service type description 2 years ago
templates Add Helm chart for Flux and Flux Helm Operator 2 years ago
.helmignore Add Helm chart for Flux and Flux Helm Operator 2 years ago
Chart.yaml Add Helm chart for Flux and Flux Helm Operator 2 years ago Fix typo in service type description 2 years ago
values.yaml Add Helm chart for Flux and Flux Helm Operator 2 years ago


Flux is a tool that automatically ensures that the state of a cluster matches the config in git. It uses an operator in the cluster to trigger deployments inside Kubernetes, which means you don’t need a separate CD tool. It monitors all relevant image repositories, detects new images, triggers deployments and updates the desired running configuration based on that (and a configurable policy).


This chart bootstraps a Flux deployment on a Kubernetes cluster using the Helm package manager.


  • Kubernetes 1.9+

Installing the Chart

Add the weaveworks repo:

helm repo add weaveworks

To install the chart with the release name flux:

$ helm install --name flux \
--set \
--namespace flux \

To connect Flux to a Weave Cloud instance:

helm install --name flux \
--namespace flux \

To install Flux with the Helm operator (alpha version):

$ helm install --name flux \
--set \
--set helmOperator.create=true \
--namespace flux \

The configuration section lists the parameters that can be configured during installation.

Setup Git deploy

At startup Flux generates a SSH key and logs the public key. Find the SSH public key with:

kubectl -n flux logs deployment/flux | grep

In order to sync your cluster state with GitHub you need to copy the public key and create a deploy key with write access on your GitHub repository. Go to Settings > Deploy keys click on Add deploy key, check Allow write access, paste the Flux public key and click Add key.

Uninstalling the Chart

To uninstall/delete the flux deployment:

$ helm delete --purge flux

The command removes all the Kubernetes components associated with the chart and deletes the release. You should also remove the deploy key from your GitHub repository.


The following tables lists the configurable parameters of the Weave Flux chart and their default values.

Parameter Description Default
image.repository Image repository
image.tag Image tag 1.3.1
image.pullPolicy Image pull policy IfNotPresent
resources CPU/memory resource requests/limits None
rbac.create If true, create and use RBAC resources true
serviceAccount.create If true, create a new service account true Service account to be used flux
service.type Service type to be used (exposing the Flux API outside of the cluster is not advised) ClusterIP
service.port Service port to be used 3030
git.url URL of git repo with Kubernetes manifests None
git.branch Branch of git repo to use for Kubernetes manifests master
git.path Path within git repo to locate Kubernetes manifests (relative path) None
git.user Username to use as git committer Weave Flux Email to use as git committer
git.chartsPath Path within git repo to locate Helm charts (relative path) charts
git.pollInterval Period at which to poll git repo for new commits 30s
helmOperator.create If true, install the Helm operator false
helmOperator.repository Helm operator image repository
helmOperator.tag Helm operator image tag 0.1.0-alpha
helmOperator.pullPolicy Helm operator image pull policy IfNotPresent
token Weave Cloud service token None

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example:

$ helm upgrade --install --wait flux \
--set \
--set git.path=deploy/auto-scaling \
--namespace flux \


Update Weave Flux version with:

helm upgrade --reuse-values flux \
--set image.tag=1.3.2 \