mirror of
https://github.com/outbackdingo/Biohazard.git
synced 2026-01-27 10:18:27 +00:00
initial Flux structure
This commit is contained in:
22
kube/1-bootstrap/flux/1-kube-core.yaml
Normal file
22
kube/1-bootstrap/flux/1-kube-core.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: 3-kube-core
|
||||
namespace: flux-system
|
||||
spec:
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
path: ./kube/3-kube-core
|
||||
interval: 1m0s
|
||||
|
||||
dependsOn:
|
||||
- name: 2-kube-crds
|
||||
|
||||
decryption:
|
||||
provider: sops
|
||||
secretRef:
|
||||
name: sops-age
|
||||
|
||||
prune: false
|
||||
wait: true
|
||||
25
kube/1-bootstrap/flux/2-kube-crds.yaml
Normal file
25
kube/1-bootstrap/flux/2-kube-crds.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
|
||||
|
||||
# not GitRepository since we're using single repo with both bootstrap path and multiple CD paths
|
||||
kind: Kustomization
|
||||
|
||||
# what this manifest will be named and where will it be deployed to
|
||||
metadata:
|
||||
name: 2-kube-crds
|
||||
# only manifest is deployed in flux-system namespace so Flux can reference it, resources in the Git repo path won't be deployed here
|
||||
namespace: flux-system
|
||||
|
||||
spec:
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
# for single repo with both bootstrap path and multiple paths to CD, use repo already known to Flux by referring to it using "flux-system", so the Source of Truth = repo Flux already watches for its bootstrap and state
|
||||
name: flux-system
|
||||
# path of repo to watch
|
||||
path: ./kube/2-kube-crds
|
||||
|
||||
# check source every minute
|
||||
interval: 1m0s
|
||||
|
||||
prune: false
|
||||
wait: true
|
||||
22
kube/1-bootstrap/flux/3-kube-core.yaml
Normal file
22
kube/1-bootstrap/flux/3-kube-core.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: 3-kube-core
|
||||
namespace: flux-system
|
||||
spec:
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
path: ./kube/3-kube-core
|
||||
interval: 1m0s
|
||||
|
||||
dependsOn:
|
||||
- name: 2-kube-crds
|
||||
|
||||
decryption:
|
||||
provider: sops
|
||||
secretRef:
|
||||
name: sops-age
|
||||
|
||||
prune: false
|
||||
wait: true
|
||||
22
kube/1-bootstrap/flux/4-core.yaml
Normal file
22
kube/1-bootstrap/flux/4-core.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: 4-core
|
||||
namespace: flux-system
|
||||
spec:
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
path: ./kube/4-core
|
||||
interval: 1m0s
|
||||
|
||||
dependsOn:
|
||||
- name: 3-kube-core
|
||||
|
||||
decryption:
|
||||
provider: sops
|
||||
secretRef:
|
||||
name: sops-age
|
||||
|
||||
prune: false
|
||||
wait: true
|
||||
22
kube/1-bootstrap/flux/5-apps.yaml
Normal file
22
kube/1-bootstrap/flux/5-apps.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: 5-apps
|
||||
namespace: flux-system
|
||||
spec:
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
path: ./kube/5-apps
|
||||
interval: 1m0s
|
||||
|
||||
dependsOn:
|
||||
- name: 4-core
|
||||
|
||||
decryption:
|
||||
provider: sops
|
||||
secretRef:
|
||||
name: sops-age
|
||||
|
||||
prune: false
|
||||
wait: true
|
||||
4
kube/2-kube-crds/kustomization.yaml
Normal file
4
kube/2-kube-crds/kustomization.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources: []
|
||||
4
kube/3-kube-core/kustomization.yaml
Normal file
4
kube/3-kube-core/kustomization.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources: []
|
||||
4
kube/4-core/kustomization.yaml
Normal file
4
kube/4-core/kustomization.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources: []
|
||||
4
kube/5-apps/kustomization.yaml
Normal file
4
kube/5-apps/kustomization.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources: []
|
||||
Reference in New Issue
Block a user