26 lines
843 B
YAML
26 lines
843 B
YAML
|
|
# Kustomize build configuration for Flux resources
|
||
|
|
# This file is used to build and apply the Flux resources
|
||
|
|
#
|
||
|
|
# IMPORTANT: Apply resources in this order:
|
||
|
|
# 1. Install Flux CD first: flux install
|
||
|
|
# 2. Apply this kustomization: kubectl apply -k infrastructure/cicd/flux/
|
||
|
|
#
|
||
|
|
# The GitRepository must be ready before the Flux Kustomization can reconcile.
|
||
|
|
|
||
|
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||
|
|
kind: Kustomization
|
||
|
|
|
||
|
|
# Resources to apply in order (namespace and secrets first, then sources, then kustomizations)
|
||
|
|
resources:
|
||
|
|
- namespace.yaml
|
||
|
|
- git-repository.yaml
|
||
|
|
- flux-kustomization.yaml
|
||
|
|
|
||
|
|
# Common labels for all resources
|
||
|
|
commonLabels:
|
||
|
|
app.kubernetes.io/name: bakery-ia-cicd
|
||
|
|
app.kubernetes.io/component: flux
|
||
|
|
app.kubernetes.io/managed-by: kustomize
|
||
|
|
|
||
|
|
# Note: Do NOT set namespace here as resources already have explicit namespaces
|