Switch k8s-sidecar to actual sidecar with startup probe
Add server pings for system monitoring
This commit is contained in:
parent
01ce49ea38
commit
9acb0d371a
2 changed files with 72 additions and 0 deletions
|
@ -22,6 +22,7 @@ alerting:
|
|||
failure-threshold: 3
|
||||
|
||||
endpoints:
|
||||
# Self
|
||||
- name: Gatus
|
||||
url: http://gatus-svc.monitoring.svc.cluster.local:8080/health
|
||||
group: Internal/Monitoring
|
||||
|
@ -30,6 +31,7 @@ endpoints:
|
|||
- "[STATUS] == 200"
|
||||
alerts:
|
||||
- type: ntfy
|
||||
# Static Sites
|
||||
- name: Blog
|
||||
url: https://blog.leechpepin.com
|
||||
group: Static Pages
|
||||
|
@ -46,3 +48,60 @@ endpoints:
|
|||
- "[STATUS] == 200"
|
||||
alerts:
|
||||
- type: ntfy
|
||||
# Server pings
|
||||
- name: Arthur
|
||||
url: "icmp://arthur.leechpepin.tailnet"
|
||||
group: Servers
|
||||
interval: 5m
|
||||
conditions:
|
||||
- "[CONNECTED] == true"
|
||||
alerts:
|
||||
- type: ntfy
|
||||
- name: Blackstaff
|
||||
url: "icmp://blackstaff.leechpepin.tailnet"
|
||||
group: Servers
|
||||
interval: 5m
|
||||
conditions:
|
||||
- "[CONNECTED] == true"
|
||||
alerts:
|
||||
- type: ntfy
|
||||
- name: dresden
|
||||
url: "icmp://dresden.leechpepin.tailnet"
|
||||
group: Servers
|
||||
interval: 5m
|
||||
conditions:
|
||||
- "[CONNECTED] == true"
|
||||
alerts:
|
||||
- type: ntfy
|
||||
- name: jlpgreencloud
|
||||
url: "icmp://jlpgreencloud.leechpepin.tailnet"
|
||||
group: Servers
|
||||
interval: 5m
|
||||
conditions:
|
||||
- "[CONNECTED] == true"
|
||||
alerts:
|
||||
- type: ntfy
|
||||
- name: jlpks8888
|
||||
url: "icmp://jlpks8888.leechpepin.tailnet"
|
||||
group: Servers
|
||||
interval: 5m
|
||||
conditions:
|
||||
- "[CONNECTED] == true"
|
||||
alerts:
|
||||
- type: ntfy
|
||||
- name: jlpatl
|
||||
url: "icmp://jlpatl.leechpepin.tailnet"
|
||||
group: Servers
|
||||
interval: 5m
|
||||
conditions:
|
||||
- "[CONNECTED] == true"
|
||||
alerts:
|
||||
- type: ntfy
|
||||
- name: Headscale
|
||||
url: "icmp://headscale.leechpepin.tailnet"
|
||||
group: Servers
|
||||
interval: 5m
|
||||
conditions:
|
||||
- "[CONNECTED] == true"
|
||||
alerts:
|
||||
- type: ntfy
|
||||
|
|
|
@ -74,8 +74,10 @@ spec:
|
|||
subPath: base-config.yaml
|
||||
- name: collected
|
||||
mountPath: /config/
|
||||
initContainers:
|
||||
- name: config-collector
|
||||
image: kiwigrid/k8s-sidecar:1.30.3
|
||||
restartPolicy: Always
|
||||
volumeMounts:
|
||||
- name: collected
|
||||
mountPath: /config/
|
||||
|
@ -85,6 +87,17 @@ spec:
|
|||
envFrom:
|
||||
- configMapRef:
|
||||
name: k8s-sidecar-settings
|
||||
startupProbe:
|
||||
exec:
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- '[ $(find /config -name "*-gatus-endpoints.yaml" | wc -l) -gt 0 ]'
|
||||
initialDelaySeconds: 2
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
successThreshold: 1
|
||||
failureThreshold: 3
|
||||
volumes:
|
||||
- configMap:
|
||||
name: base-config
|
||||
|
|
Loading…
Add table
Reference in a new issue