From the course: Automating Kubernetes with GitOps

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Setting up Flux

Setting up Flux

- Okay, let's have a short look at Flux. Flux implements GitOps continuous deployment in Kubernetes. It fetches manifest files from a Git repository. It applies a kustomization.yaml to that to apply patches, if that is needed. And it creates the corresponding resources in Kubernetes. Flux uses different custom resources to keep an eye on any changes that are happening in the Git repository, and then it applies these changes in the Kubernetes cluster. And to use Flux, you can use its own CLI, the Flux CLI. In the past, the name of that CLI was fluxctl, but fluxctl is no longer supported. So look for Flux. Now, Flux works with different sources which specify where the application should be obtained. For instance, you can use flux create source git to create it from Git, or flux create source helm, if you want to use Helm as a source. These sources are monitored by the controllers that are running in the flux-system Namespace. And once you have Flux up and running, you can use kubectl…

Contents