Restructure deployments

This commit is contained in:
2024-12-24 13:25:02 +01:00
parent c267c4ea65
commit 487ce7c0ec
34 changed files with 83 additions and 91 deletions

View File

@@ -1,3 +1,4 @@
# /clusters/prod/apps.yaml
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
@@ -11,7 +12,7 @@ spec:
kind: GitRepository
name: flux-system
dependsOn:
- name: infrastructure
- name: infrastructure-configs
decryption:
provider: sops
secretRef:

View File

@@ -1,16 +1,48 @@
# /clusters/prod/infrastructure.yaml
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: infrastructure
name: infrastructure-core
namespace: flux-system
spec:
interval: 10m0s
path: ./infrastructure/prod
path: ./infrastructure/core
prune: true
sourceRef:
kind: GitRepository
name: flux-system
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: infrastructure-controllers
namespace: flux-system
spec:
interval: 10m0s
path: ./infrastructure/controllers
prune: true
sourceRef:
kind: GitRepository
name: flux-system
dependsOn:
- name: infrastructure-core
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: infrastructure-configs
namespace: flux-system
spec:
interval: 10m0s
path: ./infrastructure/configs
prune: true
sourceRef:
kind: GitRepository
name: flux-system
dependsOn:
- name: infrastructure-controllers
decryption:
provider: sops
secretRef:
name: sops-age
name: sops-age