mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
89 lines
2.2 KiB
YAML
89 lines
2.2 KiB
YAML
---
|
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
|
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
kind: HelmRelease
|
|
metadata:
|
|
name: &app pushover-notifier-github-releases
|
|
namespace: default
|
|
spec:
|
|
interval: 30m
|
|
chart:
|
|
spec:
|
|
chart: app-template
|
|
version: 3.2.1
|
|
sourceRef:
|
|
kind: HelmRepository
|
|
name: bjw-s
|
|
namespace: flux-system
|
|
maxHistory: 2
|
|
install:
|
|
createNamespace: true
|
|
remediation:
|
|
retries: 3
|
|
upgrade:
|
|
cleanupOnFail: true
|
|
remediation:
|
|
retries: 3
|
|
uninstall:
|
|
keepHistory: false
|
|
values:
|
|
controllers:
|
|
pushover-notifier-github-releases:
|
|
type: cronjob
|
|
cronjob:
|
|
concurrencyPolicy: Forbid
|
|
schedule: 23 */3 * * *
|
|
initContainers:
|
|
init-db:
|
|
image:
|
|
repository: ghcr.io/onedr0p/postgres-init
|
|
tag: 16
|
|
envFrom: &envFrom
|
|
- secretRef:
|
|
name: pushover-notifier-secret
|
|
containers:
|
|
app:
|
|
image:
|
|
repository: cgr.dev/chainguard/python
|
|
tag: latest-dev@sha256:a66967d781bec4367589c4e9b98c18e3df0f24c38c380e45af383a3424b34bde
|
|
command:
|
|
- /bin/bash
|
|
- -c
|
|
- |
|
|
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
|
|
pip install requests PyYAML psycopg2-binary
|
|
|
|
cd /app
|
|
|
|
python /app/script.py
|
|
envFrom: *envFrom
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 250Mi
|
|
limits:
|
|
memory: 250Mi
|
|
service:
|
|
app:
|
|
controller: *app
|
|
enabled: false
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
type: configMap
|
|
name: pushover-notifier-github-releases-configmap
|
|
globalMounts:
|
|
- path: /app/config.yaml
|
|
subPath: config.yaml
|
|
script:
|
|
enabled: true
|
|
type: configMap
|
|
name: pushover-notifier-github-releases-configmap
|
|
globalMounts:
|
|
- path: /app/script.py
|
|
subPath: script.py
|