Learn FLUXCD-GITOPS with Real Code Examples
Updated Nov 27, 2025
Code Sample Descriptions
1
Simple FluxCD GitOps Deployment
# fluxcd/demo/nginx-deployment.yaml
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: nginx-deployment
namespace: flux-system
spec:
interval: 5m
sourceRef:
kind: GitRepository
name: nginx-repo
path: ./manifests
prune: true
validation: client
targetNamespace: default
A simple FluxCD configuration to deploy an Nginx application using a Git repository.