diff --git a/clusters/prod/apps.yaml b/clusters/prod/apps.yaml new file mode 100644 index 0000000..a5ebe31 --- /dev/null +++ b/clusters/prod/apps.yaml @@ -0,0 +1,18 @@ +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: apps + namespace: flux-system +spec: + interval: 10m0s + path: ./apps/prod + prune: true + sourceRef: + kind: GitRepository + name: flux-system + dependsOn: + - name: infrastructure + decryption: + provider: sops + secretRef: + name: sops-age \ No newline at end of file diff --git a/clusters/prod/flux-system/kustomization.yaml b/clusters/prod/flux-system/kustomization.yaml index 901e4f1..3842229 100644 --- a/clusters/prod/flux-system/kustomization.yaml +++ b/clusters/prod/flux-system/kustomization.yaml @@ -3,4 +3,3 @@ kind: Kustomization resources: - gotk-components.yaml - gotk-sync.yaml -- infrastructure-prod.yaml \ No newline at end of file diff --git a/clusters/prod/flux-system/infrastructure-prod.yaml b/clusters/prod/infrastructure.yaml similarity index 79% rename from clusters/prod/flux-system/infrastructure-prod.yaml rename to clusters/prod/infrastructure.yaml index b4aaadb..9b1ff5e 100644 --- a/clusters/prod/flux-system/infrastructure-prod.yaml +++ b/clusters/prod/infrastructure.yaml @@ -1,10 +1,10 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1 kind: Kustomization metadata: - name: infrastructure-prod + name: infrastructure namespace: flux-system spec: - interval: 30m + interval: 10m0s path: ./infrastructure/prod prune: true sourceRef: @@ -13,4 +13,4 @@ spec: decryption: provider: sops secretRef: - name: sops-age + name: sops-age \ No newline at end of file diff --git a/infrastructure/prod/cert-manager/kustomization.yaml b/infrastructure/prod/cert-manager/kustomization.yaml index de34693..9826a4f 100644 --- a/infrastructure/prod/cert-manager/kustomization.yaml +++ b/infrastructure/prod/cert-manager/kustomization.yaml @@ -6,3 +6,6 @@ resources: - secret.enc.yaml - issuer.yaml - release.yaml + +patchesStrategicMerge: + - release.yaml \ No newline at end of file