Flux exmaple to manage Helm Chart Deployment and Application

Please refer to the Flux documentation for installation options.

You can find the blog post for this repository here: https://anaisurl.com/full-tutorial-getting-started-with-flux-cd/ AND the YouTube tutorial: https://youtu.be/5u45lXmhgxA

Installing the Starboard Helm Chart

The Starboard Helm Chart can either be deployed through the following commands:

flux create source helm starboard-operator --url https://aquasecurity.github.io/helm-charts/ --namespace starboard-system
flux create helmrelease starboard-operator --chart starboard-operator \
  --source HelmRepository/starboard-operator \
  --chart-version 0.10.3 \
  --namespace starboard-system

OR declaratively by deploying helm-starboard.yaml

kubectl apply -f helm-starboard.yaml

Installing an application through Flux

We are going to install the Kubernetes manifests from the following Git repository:

You can find the Flux installation in application.yaml

kubectl apply -f application.yaml

Using the Flux bootstrap command

Similar to how you can deploy applications through ArgoCD, you can deploy an application directly through the Flux CLI.

flux create source git react \
    --url=https://github.com/AnaisUrlichs/react-article-display \
    --branch=main
flux create kustomization react-app \
  --target-namespace=app \
  --source=react \
  --path="./manifests" \
  --prune=true \
  --interval=5m \

Create Slack alert for Flux

Creating an alert through Kubernetes manifests with Flux is pretty straight forward.

In this example, we are creating a Slack alert.

First, you need to have a channel with the Slack webhook URL. This video shows how to get the webhook URL.

Create the following secret:

kubectl -n flux-system create secret generic slack-url \
--from-literal=address=https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK

Create the Provider that references the secret:

kubectl apply -f notification-provider.yaml

Create the alert:

kubectl apply -f alert.yaml