Add gatus templates.
This commit is contained in:
parent
a5464f33bf
commit
8d2f729fcf
4 changed files with 56 additions and 0 deletions
20
kubernetes/templates/gatus/external/configmap.yaml
vendored
Normal file
20
kubernetes/templates/gatus/external/configmap.yaml
vendored
Normal 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
|
6
kubernetes/templates/gatus/external/kustomization.yaml
vendored
Normal file
6
kubernetes/templates/gatus/external/kustomization.yaml
vendored
Normal 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
|
24
kubernetes/templates/gatus/guarded/configmap.yaml
Normal file
24
kubernetes/templates/gatus/guarded/configmap.yaml
Normal 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
|
6
kubernetes/templates/gatus/guarded/kustomization.yaml
Normal file
6
kubernetes/templates/gatus/guarded/kustomization.yaml
Normal 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
|
Loading…
Reference in a new issue