# KodeKloud: Courses GitOps with FluxCD ## GitOps with FluxCD ### GitOps Overview - [Course: GitOps with FluxCD](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/index.md): Learn to implement GitOps with FluxCD for streamlined Kubernetes deployments and continuous delivery in cloud-native environments. - [Course Introduction](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/GitOps-Overview/Course-Introduction/page.md): Learn to implement GitOps with FluxCD for streamlined Kubernetes deployments and continuous delivery in cloud-native environments. - [GitOps Introduction](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/GitOps-Overview/GitOps-Introduction/page.md): This article explores how GitOps streamlines deployment and management of cloud-native applications using Git as the single source of truth. - [GitOps Principles](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/GitOps-Overview/GitOps-Principles/page.md): This article explains the four foundational principles of GitOps for reliable, auditable, and automated application and infrastructure deployments. - [GitOps vs DevOps](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/GitOps-Overview/GitOps-vs-DevOps/page.md): This article compares GitOps and DevOps, highlighting their differences in application delivery, deployment workflows, challenges, and benefits. ### Flux Overview - [WhatWhyHow FluxCD](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Flux-Overview/WhatWhyHow-FluxCD/page.md): FluxCD is a project that helps teams adopt GitOps for Kubernetes deployment by automating synchronization between declared configurations and live cluster states. - [FluxCD Concepts amp Terminology](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Flux-Overview/FluxCD-Concepts-amp-Terminology/page.md): This article provides an overview of FluxCDs core components and GitOps terminology. - [FluxCD Features](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Flux-Overview/FluxCD-Features/page.md): This article explores the key features of FluxCD, a GitOps operator for automating Kubernetes deployments and managing cluster states. - [FluxCD Architecture Part1](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Flux-Overview/FluxCD-Architecture-Part1/page.md): This article explores the high-level architecture of FluxCD and its core components within a Kubernetes cluster. - [FluxCD Architecture Part2](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Flux-Overview/FluxCD-Architecture-Part2/page.md): This article explores the architecture of FluxCD, detailing its core controllers and their roles in implementing GitOps workflows on Kubernetes. - [FluxCD Installation Options](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Flux-Overview/FluxCD-Installation-Options/page.md): Explore various installation methods for FluxCD and GitOps on Kubernetes, including prerequisites, CLI setup, bootstrapping, customization, and uninstallation. - [Demo FluxCD Installation](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Flux-Overview/Demo-FluxCD-Installation/page.md): Guide to install Flux v2 CLI, deploy Flux controllers into Kubernetes, and bootstrap GitOps with GitHub by creating a repository, deploy key, and syncing manifests ### Source and Kustomize Controller - [Source Controller](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Source-and-Kustomize-Controller/Source-Controller/page.md): Flux’s Source Controller fetches artifacts from external sources and makes them available within your cluster for other controllers to consume. - [Demo Source Controller Git Manifest in Flux Repo](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Source-and-Kustomize-Controller/Demo-Source-Controller-Git-Manifest-in-Flux-Repo/page.md): Demonstrates how Flux source controller fetches Git manifests and how Kustomize controller applies them, including generated CRs, artifact storage, and deploying an example app. - [Kustomize Controller](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Source-and-Kustomize-Controller/Kustomize-Controller/page.md): The Kustomize Controller ensures cluster state matches desired Kubernetes manifests by validating, applying, monitoring, and optionally pruning resources. - [Demo Kustomize Controller Plain YAML Manifests in Different Repo](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Source-and-Kustomize-Controller/Demo-Kustomize-Controller-Plain-YAML-Manifests-in-Different-Repo/page.md): Guide to using Flux GitRepository and Kustomization to deploy plain YAML manifests from a separate Git repository into a Kubernetes namespace. - [Demo Kustomize Controller Kustomize Overlay](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Source-and-Kustomize-Controller/Demo-Kustomize-Controller-Kustomize-Overlay/page.md): Using Flux Kustomization to apply a Git-stored Kustomize overlay directly, showing GitRepository and Kustomization setup and Flux reconciliation of manifests. - [Source Controller S3 Bucket](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Source-and-Kustomize-Controller/Source-Controller-S3-Bucket/page.md): Learn to use Flux CD’s Source Controller to fetch Kubernetes manifests from an S3-compatible bucket like MinIO. - [Demo Source Controller S3 Bucket](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Source-and-Kustomize-Controller/Demo-Source-Controller-S3-Bucket/page.md): Guide to host Kubernetes manifests in an S3 compatible MinIO bucket and use Flux Bucket source and Kustomization to fetch and apply them to a cluster. ### Helm Controller and OCI Registry - [Helm Controller](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Helm-Controller-and-OCI-Registry/Helm-Controller/page.md): Explains how Flux source and Helm controllers fetch and package Helm charts, produce artifacts, and reconcile HelmRelease resources to install, upgrade, test, rollback, and garbage collect releases. - [Demo Helm Controller with Git as Source](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Helm-Controller-and-OCI-Registry/Demo-Helm-Controller-with-Git-as-Source/page.md): Guide to deploy a Helm chart from a Git repository using Flux source and Helm controllers, creating GitRepository and HelmRelease manifests and reconciling them with flux - [Demo Helm Controller with Helm Repository as Source](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Helm-Controller-and-OCI-Registry/Demo-Helm-Controller-with-Helm-Repository-as-Source/page.md): Demonstrates using Flux HelmRepository and HelmRelease to deploy a packaged Helm chart from a Helm repository, including values, artifact fetching, and verification - [What are OCI Artifacts](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Helm-Controller-and-OCI-Registry/What-are-OCI-Artifacts/page.md): This guide explains how OCI Artifacts streamline the storage and distribution of Kubernetes resources in a unified registry. - [Source Controller OCI Repository](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Helm-Controller-and-OCI-Registry/Source-Controller-OCI-Repository/page.md): This guide explains how to use the Flux Source Controller to fetch resources from an OCI artifacts repository. - [Demo Push Kubernetes Manifest to OCI Registry](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Helm-Controller-and-OCI-Registry/Demo-Push-Kubernetes-Manifest-to-OCI-Registry/page.md): Packaging Kubernetes manifests as OCI artifacts and pushing them to GitHub Container Registry for Flux to fetch and deploy, including authentication and optional signing - [Demo Push Helm Chart to OCI Registry](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Helm-Controller-and-OCI-Registry/Demo-Push-Helm-Chart-to-OCI-Registry/page.md): Guide to package a Helm chart, authenticate to an OCI registry, push the chart as an OCI artifact, and verify the published package. - [Demo Setting up the MySQL Database](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Helm-Controller-and-OCI-Registry/Demo-Setting-up-the-MySQL-Database/page.md): Deploying a MySQL database for the Block Buster app using Flux and Kustomize with GitOps, selective deployment, secrets handling, and verification steps - [Demo Flux Pull and Deploy from OCI Registry](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Helm-Controller-and-OCI-Registry/Demo-Flux-Pull-and-Deploy-from-OCI-Registry/page.md): Guide to using Flux to pull a private OCI artifact from GHCR and deploy its Kubernetes manifests with an OCIRepository source and Kustomization, including registry auth and health checks ### Image Automation Controller - [Image Automation Controller](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Image-Automation-Controller/Image-Automation-Controller/page.md): Flux’s Image Automation Controller automates updates of Kubernetes manifests with the latest container image tags by integrating with Git repositories and container registries. - [Demo Install Image Automation Controller](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Image-Automation-Controller/Demo-Install-Image-Automation-Controller/page.md): Guide to installing and upgrading Flux image-reflector and image-automation controllers to automate registry image scanning and Git repo updates with verification steps - [Demo Initialize DockerHub](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Image-Automation-Controller/Demo-Initialize-DockerHub/page.md): Guide to push a Docker image to Docker Hub and deploy it with Flux to a Kubernetes cluster by updating manifests and verifying the app - [Demo Image Automation Controller Repository](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Image-Automation-Controller/Demo-Image-Automation-Controller-Repository/page.md): Tutorial showing how to configure FluxCD ImageRepository with Docker Hub to scan image tags and enable automated GitOps updates using ImagePolicy and ImageUpdateAutomation - [Demo Image Automation Controller Policy](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Image-Automation-Controller/Demo-Image-Automation-Controller-Policy/page.md): Guide to using Flux ImagePolicy to select a latest image tag from an ImageRepository using policies like semver, and explains reconciliation and need for ImageUpdateAutomation to update manifests - [Demo Image Automation Controller Update](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Image-Automation-Controller/Demo-Image-Automation-Controller-Update/page.md): How to configure Flux ImageUpdateAutomation to automatically update container image tags in Git manifests, commit changes, and apply updated images to a Kubernetes cluster ### Secret Management & Sign Verification - [Bitnami Sealed Secrets](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Secret-Management-Sign-Verification/Bitnami-Sealed-Secrets/page.md): This guide explains managing Kubernetes secrets securely using Bitnami Sealed Secrets in a GitOps workflow with Flux. - [Demo Setup Bitnami Sealed](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Secret-Management-Sign-Verification/Demo-Setup-Bitnami-Sealed/page.md): Guide to configuring Bitnami Sealed Secrets with Flux to store encrypted Kubernetes secrets in Git, seal them locally with kubeseal, and have Flux apply them to the cluster. - [Demo EncryptDecrypt Secret using Bitnami Sealed Secrets](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Secret-Management-Sign-Verification/Demo-EncryptDecrypt-Secret-using-Bitnami-Sealed-Secrets/page.md): Converting Kubernetes plain-text Secrets in Git to Bitnami SealedSecrets and using Flux to apply encrypted secrets so clusters receive decrypted Secrets at apply-time - [Mozilla SOPS](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Secret-Management-Sign-Verification/Mozilla-SOPS/page.md): Learn to use Mozilla SOPS with PGP to securely encrypt and manage Kubernetes secrets in Git repositories. - [Demo Mozilla SOPS Admin](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Secret-Management-Sign-Verification/Demo-Mozilla-SOPS-Admin/page.md): Walkthrough for cluster administrators to create a GPG keypair, commit the public key to Git, and store the private key as a Kubernetes Secret for Flux SOPS decryption. - [Demo Mozilla SOPS Developer](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Secret-Management-Sign-Verification/Demo-Mozilla-SOPS-Developer/page.md): Guide showing developers how to encrypt Kubernetes Secrets with Mozilla SOPS using PGP and configure Flux to decrypt them before applying to the cluster. - [Cosign OCI Artifacts](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Secret-Management-Sign-Verification/Cosign-OCI-Artifacts/page.md): Learn to sign and verify OCI artifacts using Cosign and Flux in this comprehensive guide. - [Demo Install Cosign](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Secret-Management-Sign-Verification/Demo-Install-Cosign/page.md): Installing cosign, generating signing key pair, and storing public key in Kubernetes (Flux) to sign and verify OCI container images - [Demo Cosign OCI Artifacts](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Secret-Management-Sign-Verification/Demo-Cosign-OCI-Artifacts/page.md): Shows how to sign and verify OCI artifacts with Cosign and configure Flux to fetch, verify, and deploy signed OCI packages from GHCR using GitOps. ### Notification Controller - [Webhook Receiver](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Notification-Controller/Webhook-Receiver/page.md): This guide explains how to set up a Flux Notification Controller to trigger reconciliations via webhooks for Git repositories. - [Demo Webhook Receiver](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Notification-Controller/Demo-Webhook-Receiver/page.md): Guide to configure Flux Receiver and GitHub webhooks to trigger immediate GitRepository reconciliation in a Kubernetes cluster demo. - [Alerts amp Providers](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Notification-Controller/Alerts-amp-Providers/page.md): The article explains how to configure the Flux Notification Controller to send alerts from external sources to notification platforms like Slack. - [Demo Alerts Providers](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Notification-Controller/Demo-Alerts-Providers/page.md): Guide to configuring Flux Notification controller to send Flux alerts to a Slack channel, including Slack app setup, Kubernetes secret, Provider and Alert creation, and testing. ### Monitoring & User Interface - [Flux Monitoring](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Monitoring-User-Interface/Flux-Monitoring/page.md): Learn to monitor FluxCD controllers with Prometheus and visualize metrics using Grafana, covering metrics exposure, auto-discovery, configuration, and dashboard creation. - [Demo Install Kube Prometheus Stack](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Monitoring-User-Interface/Demo-Install-Kube-Prometheus-Stack/page.md): Tutorial to install kube-prometheus-stack on Kubernetes using Flux v2, Helm charts and Kustomize, configure HelmRelease and expose Prometheus and Grafana for local demos - [Demo Monitor Flux using Prometheus Grafana](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Monitoring-User-Interface/Demo-Monitor-Flux-using-Prometheus-Grafana/page.md): Configuring Prometheus and Grafana to monitor Flux controllers using PodMonitor, Flux Kustomization, PromQL examples and prebuilt Grafana dashboards for control plane and cluster metrics. - [Demo Flux User Interface](https://notes.kodekloud.com/docs/GitOps-with-FluxCD/Monitoring-User-Interface/Demo-Flux-User-Interface/page.md): Overview and installation guide for Flux graphical UIs, comparing VS Code GitOps extension and Weave GitOps dashboard for monitoring Flux resources