From a67c482a872fea81ac160dbb2e2e1e0f6a875429 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Sun, 21 Mar 2021 19:23:56 +0200 Subject: [PATCH] Add Continuous Delivery section to readme Signed-off-by: Stefan Prodan --- README.md | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 80 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0b34753d7..d1f2d1876 100644 --- a/README.md +++ b/README.md @@ -86,12 +86,11 @@ helm upgrade --install --wait frontend \ --set backend=http://backend-podinfo:9898/echo \ podinfo/podinfo -# Test pods have hook-delete-policy: hook-succeeded helm test frontend helm upgrade --install --wait backend \ --namespace test \ ---set hpa.enabled=true \ +--set redis.enabled=true \ podinfo/podinfo ``` @@ -105,4 +104,82 @@ Docker: ```bash docker run -dp 9898:9898 stefanprodan/podinfo -``` \ No newline at end of file +``` + +### Continuous Delivery + +In order to install podinfo on a Kubernetes cluster and keep it up to date with the latest +release in an automated manner, you can use [Flux](https://fluxcd.io). + +Install the Flux CLI on MacOS and Linux using Homebrew: + +```sh +brew install fluxcd/tap/flux +``` + +Install the Flux controllers needed for Helm operations: + +```sh +flux install \ +--namespace=flux-system \ +--network-policy=false \ +--components=source-controller,helm-controller +``` + +Add podinfo's Helm repository to your cluster and +configure Flux to check for new chart releases every ten minutes: + +```sh +flux create source helm podinfo \ +--namespace=default \ +--url=https://stefanprodan.github.io/podinfo \ +--interval=10m +``` + +Create a `podinfo-values.yaml` file locally: + +```sh +cat > podinfo-values.yaml <