refactor(cluster)!: Update flux installation and upgrade method

Other changes include:
- Rename cluster/base to cluster/flux
- Add config and charts fluxtomizations
- Update scripts and taskfiles to reflect changes
This commit is contained in:
Devin Buhl committed 2022-06-09 12:22:22 -04:00
1 parent a5999667b6
commit 49d5e6de70
17 files changed
+112 -5697

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: apps
namespace: flux-system
spec:
interval: 10m
path: ./cluster/apps
prune: true
sourceRef:
kind: GitRepository
name: flux-cluster
dependsOn:
- name: core
decryption:
provider: sops
secretRef:
name: sops-age
postBuild:
substituteFrom:
- kind: ConfigMap
name: cluster-settings
- kind: Secret
name: cluster-secrets
+13
View File
@@ -0,0 +1,13 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: charts
namespace: flux-system
spec:
interval: 10m
path: ./cluster/charts
prune: true
sourceRef:
kind: GitRepository
name: flux-cluster
+17
View File
@@ -0,0 +1,17 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: config
namespace: flux-system
spec:
interval: 10m
path: ./cluster/config
prune: true
sourceRef:
kind: GitRepository
name: flux-cluster
decryption:
provider: sops
secretRef:
name: sops-age
+27
View File
@@ -0,0 +1,27 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: core
namespace: flux-system
spec:
interval: 10m
path: ./cluster/core
prune: false
sourceRef:
kind: GitRepository
name: flux-cluster
dependsOn:
- name: charts
- name: config
- name: crds
decryption:
provider: sops
secretRef:
name: sops-age
postBuild:
substituteFrom:
- kind: ConfigMap
name: cluster-settings
- kind: Secret
name: cluster-secrets
+13
View File
@@ -0,0 +1,13 @@
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: flux-crds
namespace: flux-system
spec:
interval: 10m
path: ./cluster/crds
prune: false
sourceRef:
kind: GitRepository
name: flux-cluster
@@ -0,0 +1,31 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: GitRepository
metadata:
name: flux-installation
namespace: flux-system
spec:
interval: 10m
ref:
# renovate: datasource=github-releases depName=fluxcd/flux2
tag: v0.30.2
url: https://github.com/fluxcd/flux2
ignore: |
# exclude all
/*
# path to manifests
!/manifests
---
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: flux-installation
namespace: flux-system
spec:
interval: 10m
path: ./manifests/install
prune: true
wait: true
sourceRef:
kind: GitRepository
name: flux-installation
@@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- flux-installation.yaml
- flux-cluster.yaml