♻️ apply kube templates

This commit is contained in:
auricom
2024-01-23 17:22:40 +01:00
parent d384984388
commit cb87a67dd2
262 changed files with 1510 additions and 3360 deletions

View File

@@ -6,5 +6,4 @@ resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
# Flux-Kustomizations
- ./snapscheduler/ks.yaml
- ./volsync/ks.yaml

View File

@@ -1,34 +0,0 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: snapscheduler
namespace: volsync
spec:
interval: 30m
chart:
spec:
chart: snapscheduler
version: 3.3.0
sourceRef:
kind: HelmRepository
name: backube
namespace: flux-system
maxHistory: 2
install:
createNamespace: true
crds: CreateReplace
remediation:
retries: 3
upgrade:
cleanupOnFail: true
crds: CreateReplace
remediation:
retries: 3
uninstall:
keepHistory: false
values:
manageCRDs: true
metrics:
disableAuth: true

View File

@@ -1,7 +0,0 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: volsync
resources:
- ./helmrelease.yaml

View File

@@ -1,37 +0,0 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-snapscheduler
namespace: flux-system
spec:
dependsOn:
- name: cluster-apps-snapshot-controller
path: ./kubernetes/apps/volsync/snapscheduler/app
prune: true
sourceRef:
kind: GitRepository
name: home-ops-kubernetes
interval: 30m
retryInterval: 1m
timeout: 3m
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-snapscheduler-schedules
namespace: flux-system
spec:
dependsOn:
- name: cluster-apps-snapscheduler
path: ./kubernetes/apps/volsync/snapscheduler/schedules
prune: true
sourceRef:
kind: GitRepository
name: home-ops-kubernetes
wait: true
interval: 30m
retryInterval: 1m
timeout: 3m

View File

@@ -1,6 +0,0 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./snapschedule.yaml

View File

@@ -1,17 +0,0 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/snapshotschedule_v1.json
apiVersion: snapscheduler.backube/v1
kind: SnapshotSchedule
metadata:
name: main
namespace: default
spec:
disabled: false
claimSelector:
matchLabels:
snapshot.home.arpa/enabled: "true"
retention:
expires: 48h
schedule: "@daily"
snapshotTemplate:
snapshotClassName: csi-ceph-blockpool

View File

@@ -3,16 +3,24 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-volsync-app
name: &app volsync
namespace: flux-system
spec:
targetNamespace: *app
commonMetadata:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: cluster-apps-snapshot-controller
- name: snapshot-controller
path: ./kubernetes/apps/volsync/volsync/app
prune: true
sourceRef:
kind: GitRepository
name: home-ops-kubernetes
wait: false
interval: 30m
retryInterval: 1m
timeout: 3m
timeout: 5m
postBuild:
substitute:
APP: *app