Add gatus templates.

This commit is contained in:
Joseph Hanson 2024-04-13 10:16:25 -05:00
parent a5464f33bf
commit 8d2f729fcf
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
4 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,20 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: "${APP}-gatus-ep"
labels:
gatus.io/enabled: "true"
data:
config.yaml: |
endpoints:
- name: "${APP}"
group: external
url: "https://${GATUS_SUBDOMAIN:-${APP}}.hsn.dev${GATUS_PATH:-/}"
interval: 1m
client:
dns-resolver: tcp://1.1.1.1:53
conditions:
- "[STATUS] == ${GATUS_STATUS:-200}"
alerts:
- type: pushover

View file

@ -0,0 +1,6 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./configmap.yaml

View file

@ -0,0 +1,24 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: "${APP}-gatus-ep"
labels:
gatus.io/enabled: "true"
data:
config.yaml: |
endpoints:
- name: "${APP}"
group: guarded
url: 1.1.1.1
interval: 1m
ui:
hide-hostname: true
hide-url: true
dns:
query-name: "${GATUS_SUBDOMAIN:-${APP}}.hsn.dev"
query-type: A
conditions:
- "len([BODY]) == 0"
alerts:
- type: pushover

View file

@ -0,0 +1,6 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./configmap.yaml