Compare commits

..

23 Commits

Author SHA1 Message Date
4bfa715948 feat: Added cnpg
All checks were successful
kustomization/flux-system/1b69816f reconciliation succeeded
kustomization/spegel/1b69816f reconciliation succeeded
2025-12-15 03:13:39 +01:00
e2d685dcfe chore: Set minor version for all controllers 2025-12-15 03:08:10 +01:00
8c7b939bfb feat: Use single kustomization for all alerts 2025-12-15 03:08:10 +01:00
6090de51c4 feat: Added flux status to gitea commits 2025-12-15 03:08:10 +01:00
f005fab6f8 chore: Moved telegram alerts config 2025-12-15 03:08:10 +01:00
f10a7f430c feat: Add longhorn backup job 2025-12-15 03:08:10 +01:00
c1d80adf8a feat: Pin flux version in bootstrap script 2025-12-15 03:08:10 +01:00
8fc89fa643 chore: Added README with common issues 2025-12-15 03:08:09 +01:00
7cfc406e08 Add Flux v2.7.5 component manifests 2025-12-15 03:08:09 +01:00
d1ba82afc2 chore: Add 1 git-crypt collaborator
New collaborators:

    CD17A34CBFB21DE9A73D47EB76BDEC4E165D8AD9
        Tim Huizinga <tim@huizinga.dev>
2025-12-15 03:08:09 +01:00
a6680b2a01 feat: Added garage as default backup target 2025-12-15 03:08:09 +01:00
466f4244d7 chore: Adjusted certificate kustomization timeout 2025-12-15 03:08:09 +01:00
128ba4627c chore: Update sops keys 2025-12-15 03:08:09 +01:00
f78fc3d8c1 chore: Typos ignore age encrypted blocks 2025-12-15 03:08:09 +01:00
7236d72e53 feat: Added telegram alerts 2025-12-15 03:08:09 +01:00
f2e9cede37 feat: Added local-path-provisioner 2025-12-15 03:08:09 +01:00
bdc35b8d45 feat: Separate config for production/testing 2025-12-15 03:00:02 +01:00
4c86c13942 feat: Switch to longhorn 2025-12-15 03:00:02 +01:00
02419996c4 feat: Testing on single node 2025-12-15 03:00:02 +01:00
92e7e9ebc5 feat: Added OpenEBS 2025-12-15 03:00:02 +01:00
39929c9a74 feat: Use pre-generated deploy key 2025-12-15 03:00:02 +01:00
1085275c76 chore: Added pre-commit hooks 2025-12-15 03:00:02 +01:00
9353408ed6 feat: Added spegel 2025-12-15 03:00:02 +01:00
14 changed files with 115 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ resources:
- ../../controllers/spegel/spegel.yaml - ../../controllers/spegel/spegel.yaml
- ../../controllers/longhorn/longhorn.yaml - ../../controllers/longhorn/longhorn.yaml
- ../../controllers/local-path-provisioner/local-path-provisioner.yaml - ../../controllers/local-path-provisioner/local-path-provisioner.yaml
- ../../controllers/cnpg/cnpg.yaml
- ../../configs/artifacts.yaml - ../../configs/artifacts.yaml
- ../../configs/letsencrypt/letsencrypt.yaml - ../../configs/letsencrypt/letsencrypt.yaml

View File

@@ -39,3 +39,8 @@ spec:
copy: copy:
- from: "@foundation/controllers/local-path-provisioner**" - from: "@foundation/controllers/local-path-provisioner**"
to: "@artifact/" to: "@artifact/"
- name: cnpg
originRevision: "@foundation"
copy:
- from: "@foundation/controllers/cnpg/**"
to: "@artifact/"

View File

@@ -0,0 +1,29 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: cnpg
namespace: cnpg-system
spec:
interval: 12h
install:
strategy:
name: RetryOnFailure
retryInterval: 2m
upgrade:
strategy:
name: RetryOnFailure
retryInterval: 3m
chart:
spec:
chart: cloudnative-pg
version: "0.27.x"
sourceRef:
kind: HelmRepository
name: cnpg
interval: 24h
valuesFrom:
- kind: ConfigMap
name: values-base
- kind: ConfigMap
name: values-overlay
optional: true

View File

@@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: cnpg
namespace: cnpg-system
spec:
interval: 24h
url: https://cloudnative-pg.github.io/charts

View File

@@ -0,0 +1,15 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- helm-repository.yaml
- helm-release.yaml
configurations:
- name-reference.yaml
configMapGenerator:
- name: values-base
namespace: cnpg
files:
- values.yaml

View File

@@ -0,0 +1,6 @@
nameReference:
- kind: ConfigMap
version: v1
fieldSpecs:
- path: spec/valuesFrom/name
kind: HelmRelease

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: cnpg-system

View File

View File

@@ -0,0 +1,15 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cnpg
namespace: flux-system
spec:
interval: 1h
retryInterval: 2m
timeout: 5m
sourceRef:
kind: ExternalArtifact
name: cpng
path: ./${cluster_env}
prune: true
wait: true

View File

@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base
configMapGenerator:
- name: values-overlay
namespace: cnpg
files:
- values.yaml

View File

@@ -0,0 +1 @@
replicaCount: 2

View File

@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base
configMapGenerator:
- name: values-overlay
namespace: cnpg
files:
- values.yaml

View File

@@ -0,0 +1 @@
replicaCount: 1

View File

@@ -4,15 +4,23 @@ metadata:
name: spegel name: spegel
namespace: spegel namespace: spegel
spec: spec:
interval: 1m interval: 12h
install:
strategy:
name: RetryOnFailure
retryInterval: 2m
upgrade:
strategy:
name: RetryOnFailure
retryInterval: 3m
chart: chart:
spec: spec:
chart: spegel chart: spegel
version: "0.5.x" version: "0.5.x"
interval: 5m
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: spegel name: spegel
interval: 24h
values: values:
spegel: spegel:
containerdRegistryConfigPath: /etc/cri/conf.d/hosts containerdRegistryConfigPath: /etc/cri/conf.d/hosts