Add widget health check CronJob and ConfigMap
This commit is contained in:
parent
e86dad4030
commit
cbfdb6de76
15 changed files with 48 additions and 0 deletions
BIN
.kitestacks_check.py.swp
Normal file
BIN
.kitestacks_check.py.swp
Normal file
Binary file not shown.
8
configmap.yaml
Normal file
8
configmap.yaml
Normal 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
24
cronjob.yaml
Normal 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
|
||||
|
|
@ -1 +1,2 @@
|
|||
6aed62067899c4c741cf49d4b93a49c4d988bb0c refs/heads/main
|
||||
e86dad4030fa018da93c7764a8675cdc9959965e refs/heads/master
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
0000000000000000000000000000000000000000 e86dad4030fa018da93c7764a8675cdc9959965e Gitea <gitea@fake.local> 1780710117 +0000 push
|
||||
|
|
@ -1 +1,2 @@
|
|||
P pack-a1019fcd5db083942752b6fd0b97764c8800e68e.pack
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1 @@
|
|||
e86dad4030fa018da93c7764a8675cdc9959965e
|
||||
Binary file not shown.
Binary file not shown.
BIN
data/gitea/sessions/0/b/0b489c2e47c3894e
Normal file
BIN
data/gitea/sessions/0/b/0b489c2e47c3894e
Normal file
Binary file not shown.
Binary file not shown.
12
gitrepository.yaml
Normal file
12
gitrepository.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue