Add widget health check CronJob and ConfigMap

This commit is contained in:
Kenpat7177 2026-06-05 20:51:26 -05:00
parent e86dad4030
commit cbfdb6de76
15 changed files with 48 additions and 0 deletions

BIN
.kitestacks_check.py.swp Normal file

Binary file not shown.

8
configmap.yaml Normal file
View file

@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: kitestacks-scripts
namespace: monitoring
data:
kitestacks_check.py: |
# Paste the full contents of your kitestacks_check.py here

24
cronjob.yaml Normal file
View file

@ -0,0 +1,24 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: kitestacks-widget-check
namespace: monitoring
spec:
schedule: "0 * * * *" # every hour
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
containers:
- name: kitestacks-check
image: python:3.12-slim
command: ["python3", "/scripts/kitestacks_check.py"]
volumeMounts:
- name: scripts
mountPath: /scripts
restartPolicy: OnFailure
volumes:
- name: scripts
configMap:
name: kitestacks-scripts

View file

@ -1 +1,2 @@
6aed62067899c4c741cf49d4b93a49c4d988bb0c refs/heads/main
e86dad4030fa018da93c7764a8675cdc9959965e refs/heads/master

View file

@ -0,0 +1 @@
0000000000000000000000000000000000000000 e86dad4030fa018da93c7764a8675cdc9959965e Gitea <gitea@fake.local> 1780710117 +0000 push

View file

@ -1 +1,2 @@
P pack-a1019fcd5db083942752b6fd0b97764c8800e68e.pack

View file

@ -0,0 +1 @@
e86dad4030fa018da93c7764a8675cdc9959965e

Binary file not shown.

Binary file not shown.

Binary file not shown.

12
gitrepository.yaml Normal file
View file

@ -0,0 +1,12 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: GitRepository
metadata:
name: kitestacks-cron
namespace: flux-system
spec:
interval: 1m
url: https://gitforge.kitestacks.com/kenpat/kitestacks-homelab.git
ref:
branch: master
secretRef:
name: forgejo-access # Only needed if repo is private