Flux CD Setup
In this section we will configure the environment to enable Flux CD (https://fluxcd.io/) for continuous delivery in our staging environment. Flux has already been installed into the kubernetes (k8s) cluster, which is a one-time task for the administrator.
First, we’ll run a CI/CD pipeline to upate yaml configuration files to make them specific to deploy into our staging k8s environment. The changes will be made into a new branch named staging.
Next, we’ll create a k8s secret with the Gitlab credentials to our repository so that flux can read our repository.
Finaly, we’ll create a couple of k8s objects that utilize the Flux CD deployment to watch our repo for changes.