I cannot create a direct image, but I can describe an end-to-end sequential diagram of the FluxCD Kustomizations in your repository. You can use this description to create a visual diagram with tools like PlantUML, Lucidchart, or sequence diagram editors.
Sequential Flow of FluxCD Kustomizations
Key Details:
FluxCD operates using Kustomizations, which are defined in your repository.
Dependencies between Kustomizations control the sequence of reconciliation.
The sourceRef points to a GitRepository source, defining where Flux will fetch manifests.
Each Kustomization is reconciled according to its dependencies and interval.
Below is the flow based on your files:
Sequence Flow
Cluster Helm Repositories (cluster-helm-repos)
Pulls common Helm charts from the ./infrastructure/helm-repositories folder.
Other Kustomizations depend on this step to initialize shared Helm repositories.
Core Base (core-base)
Path: ./clusters/demo/core
Depends on: cluster-helm-repos.
Provides the foundational configuration for the cluster.
Infrastructure Applications (infra-apps)
Path: ./clusters/demo/apps
Depends on:
cluster-helm-repos
core-base
Deploys infrastructure applications.
Cert-Manager Configuration (config-cert-manager)
Path: ./infrastructure/configs/cert-manager
Depends on:
core-base
core-cert-manager
Uses SOPS for decryption of secrets (sops-age).
Configures cert-manager.
Kong Configuration (config-kong)
Path: ./infrastructure/configs/kong
Depends on:
core-base
core-kong-gateway
core-kong-ingress
Configures Kong as the API gateway and ingress controller.
Prometheus Configuration
Path: ./infrastructure/base/prometheus
No explicit Kustomization file found, but inferred from the folder structure.
PlantUML for Visual Sequence
To create a visual sequence diagram, use the following PlantUML code:
plantuml
@startuml
actor "[Redacted Person]" as [Redacted Person]
Flux -> "GitRepository: demo-flux" : Pull manifests from source
alt Cluster Helm Repositories
Flux -> "Kustomization: cluster-helm-repos" : Reconcile
"Kustomization: cluster-helm-repos" -> "Path: ./infrastructure/helm-repositories" : Apply manifests
end
alt Core Base Configuration
Flux -> "Kustomization: core-base" : Reconcile
"Kustomization: core-base" -> "Path: ./clusters/demo/core" : Apply manifests
end
alt Infrastructure Applications
Flux -> "Kustomization: infra-apps" : Reconcile
"Kustomization: infra-apps" -> "Path: ./clusters/demo/apps" : Apply manifests
end
alt Cert-Manager Configuration
Flux -> "Kustomization: config-cert-manager" : Reconcile
"Kustomization: config-cert-manager" -> "Path: ./infrastructure/configs/cert-manager" : Apply manifests
"Kustomization: config-cert-manager" -> "Secret: sops-age" : Decrypt secrets
end
alt Kong Configuration
Flux -> "Kustomization: config-kong" : Reconcile
"Kustomization: config-kong" -> "Path: ./infrastructure/configs/kong" : Apply manifests
end
alt Prometheus Configuration
Flux -> "Path: ./infrastructure/base/prometheus" : Apply manifests
end
@[Redacted Person]
Any IDE with PlantUML plugin (e.g., IntelliJ, VS Code).
Render the diagram to get a step-by-step visual sequence.
Diagram Description
The actor is the FluxCD controller, which pulls manifests from the GitRepository (demo-flux).
Each Kustomization is reconciled in order, respecting dependencies (dependsOn fields) and intervals.
The flow starts from foundational configurations (Helm Repositories, Core Base) and builds up to application-specific configurations (Cert-Manager, Kong, Prometheus).
Let me know if you'd like further help visualizing this!