feat: migrate namespaces

This commit is contained in:
2024-11-05 14:17:21 -05:00
parent 83a43b94c9
commit 5a1600c377
6 changed files with 43 additions and 20 deletions

View File

@@ -1,10 +1,28 @@
--- ---
apiVersion: kustomize.toolkit.fluxcd.io/v1 apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization kind: Kustomization
metadata:
name: infra-namespaces
namespace: flux-system
spec:
interval: 1h0m0s
path: ./infra/namespaces
prune: true
retryInterval: 1m0s
sourceRef:
kind: GitRepository
name: flux-system
timeout: 5m0s
wait: true
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata: metadata:
name: infra-controllers name: infra-controllers
namespace: flux-system namespace: flux-system
spec: spec:
dependsOn:
- name: infra-namespaces
interval: 1h0m0s interval: 1h0m0s
path: ./infra/controllers path: ./infra/controllers
prune: true prune: true

View File

@@ -1,9 +1,4 @@
--- ---
apiVersion: v1
kind: Namespace
metadata:
name: 1password-system
---
apiVersion: source.toolkit.fluxcd.io/v1 apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository kind: HelmRepository
metadata: metadata:

View File

@@ -1,9 +1,4 @@
--- ---
apiVersion: v1
kind: Namespace
metadata:
name: longhorn-system
---
apiVersion: source.toolkit.fluxcd.io/v1 apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository kind: HelmRepository
metadata: metadata:

View File

@@ -1,9 +1,4 @@
--- ---
apiVersion: v1
kind: Namespace
metadata:
name: metallb-system
---
apiVersion: source.toolkit.fluxcd.io/v1 apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository kind: HelmRepository
metadata: metadata:

View File

@@ -1,9 +1,4 @@
--- ---
apiVersion: v1
kind: Namespace
metadata:
name: traefik-system
---
apiVersion: source.toolkit.fluxcd.io/v1 apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository kind: HelmRepository
metadata: metadata:

View File

@@ -0,0 +1,25 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: traefik-system
---
apiVersion: v1
kind: Namespace
metadata:
name: metallb-system
---
apiVersion: v1
kind: Namespace
metadata:
name: longhorn-system
---
apiVersion: v1
kind: Namespace
metadata:
name: external-dns-system
---
apiVersion: v1
kind: Namespace
metadata:
name: 1password-system