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

File diff suppressed because it is too large. Load diff
@@ -1,24 +0,0 @@
---
# Delete the allow-egress NetworkPolicy
$patch: delete
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-egress
namespace: flux-system
---
# Delete the allow-scraping NetworkPolicy
$patch: delete
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-scraping
namespace: flux-system
---
# Delete the allow-webhooks NetworkPolicy
$patch: delete
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-webhooks
namespace: flux-system
@@ -1,9 +0,0 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- gotk-components.yaml
- gotk-sync.yaml
- charts
patchesStrategicMerge:
- ./gotk-patches.yaml
+5
View File
@@ -0,0 +1,5 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- github.com/fluxcd/flux2/manifests/install?ref=v0.30.2
+5
View File
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cluster-settings.yaml
- cluster-secrets.sops.yaml
@@ -6,13 +6,13 @@ metadata:
namespace: flux-system
spec:
interval: 10m
dependsOn:
- name: core
path: ./cluster/apps
prune: true
sourceRef:
kind: GitRepository
name: flux-system
name: flux-cluster
dependsOn:
- name: core
decryption:
provider: sops
secretRef:
@@ -10,4 +10,4 @@ spec:
prune: true
sourceRef:
kind: GitRepository
name: flux-system
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
@@ -6,14 +6,15 @@ metadata:
namespace: flux-system
spec:
interval: 10m
dependsOn:
- name: charts
- name: crds
path: ./cluster/core
prune: false
sourceRef:
kind: GitRepository
name: flux-system
name: flux-cluster
dependsOn:
- name: charts
- name: config
- name: crds
decryption:
provider: sops
secretRef:
@@ -2,7 +2,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: crds
name: flux-crds
namespace: flux-system
spec:
interval: 10m
@@ -10,4 +10,4 @@ spec:
prune: false
sourceRef:
kind: GitRepository
name: flux-system
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