Skip to content

Commit

Permalink
deploy changedetection
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfantom committed Nov 30, 2024
1 parent 00cd39e commit c7418c8
Show file tree
Hide file tree
Showing 7 changed files with 111 additions and 0 deletions.
13 changes: 13 additions & 0 deletions apps/changedetection/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: changedetection
resources:
- repository.yaml
- namespace.yaml
- release.yaml
configMapGenerator:
- name: values
files:
- values.yaml=values.yaml
configurations:
- kustomizeconfig.yaml
8 changes: 8 additions & 0 deletions apps/changedetection/kustomizeconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Kustomize config for enabling HelmRelease values from
# ConfigMaps and Secrets generated by Kustomize
nameReference:
- kind: ConfigMap
version: v1
fieldSpecs:
- path: spec/valuesFrom/name
kind: HelmRelease
4 changes: 4 additions & 0 deletions apps/changedetection/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: changedetection
32 changes: 32 additions & 0 deletions apps/changedetection/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: changedetection
spec:
chart:
spec:
chart: changedetection
version: "0.6.1"
sourceRef:
kind: HelmRepository
name: alekc-charts
namespace: changedetection
interval: 5m
valuesFile: values.yaml
interval: 5m
timeout: 2m
install:
timeout: 10m
disableWait: false
crds: CreateReplace
createNamespace: true
remediation:
retries: 3
upgrade:
timeout: 10m
disableWait: false
crds: CreateReplace
valuesFrom:
- kind: ConfigMap
name: values
7 changes: 7 additions & 0 deletions apps/changedetection/repository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: alekc-charts
spec:
interval: 5m
url: https://charts.alekc.dev
35 changes: 35 additions & 0 deletions apps/changedetection/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Reference documentation: https://gitlab.com/alexander-chernov/helm/changedetection

ingress:
enabled: true
className: private
annotations:
cert-manager.io/cluster-issuer: letsencrypt-dns01
reloader.homer/group: Ankh Cloud
reloader.homer/logo: https://user-images.githubusercontent.com/275001/231676626-7d768df9-be4c-4187-a573-aba640b826d3.svg
reloader.homer/name: Change Detection
reloader.homer/subtitle: Website change detection
reloader.homer/tag: local
labels:
reloader.homer/enabled: "true"
hosts:
- host: change.ankhmorpork.thaum.xyz
paths:
- path: /
pathType: ImplementationSpecific
tls:
- secretName: change-ankhmorpork-thaum-xyz-tls
hosts:
- change.ankhmorpork.thaum.xyz

resources:
# limits:
# cpu: 100m
# memory: 128Mi
requests:
cpu: 100m
memory: 128Mi

persistence:
storageClass: "longhorn-r2"
size: 1Gi
12 changes: 12 additions & 0 deletions base/flux-apps/changedetection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: changedetection
namespace: flux-apps
spec:
interval: 15m0s
path: ./apps/changedetection
prune: true
sourceRef:
kind: GitRepository
name: ankhmorpork

0 comments on commit c7418c8

Please sign in to comment.