From 66b7d118bab49dbcb4bc68767be00b9b8f775261 Mon Sep 17 00:00:00 2001 From: Guilhem Lettron Date: Wed, 29 Apr 2020 22:04:41 +0200 Subject: [PATCH] gitops: add Flux helm install method --- slides/k8s/gitworkflows.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/slides/k8s/gitworkflows.md b/slides/k8s/gitworkflows.md index 9f98f507..957fbceb 100644 --- a/slides/k8s/gitworkflows.md +++ b/slides/k8s/gitworkflows.md @@ -106,6 +106,25 @@ --- +## Setting up Flux with Helm + +- Add Flux helm repo: + ```bash + helm repo add fluxcd https://charts.fluxcd.io + ``` + +- Install Flux: + ```bash + kubectl create namespace flux + helm upgrade --install flux \ + --set git.url=git@github.com:your-git-username/kubercoins \ + --set git.branch=prod \ + --namespace flux \ + fluxcd/flux + ``` + +--- + ## Allowing Flux to access the repository - When it starts, Flux generates an SSH key