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
|
failure-threshold: 3
|
||||||
|
|
||||||
endpoints:
|
endpoints:
|
||||||
|
# Self
|
||||||
- name: Gatus
|
- name: Gatus
|
||||||
url: http://gatus-svc.monitoring.svc.cluster.local:8080/health
|
url: http://gatus-svc.monitoring.svc.cluster.local:8080/health
|
||||||
group: Internal/Monitoring
|
group: Internal/Monitoring
|
||||||
|
@ -30,6 +31,7 @@ endpoints:
|
||||||
- "[STATUS] == 200"
|
- "[STATUS] == 200"
|
||||||
alerts:
|
alerts:
|
||||||
- type: ntfy
|
- type: ntfy
|
||||||
|
# Static Sites
|
||||||
- name: Blog
|
- name: Blog
|
||||||
url: https://blog.leechpepin.com
|
url: https://blog.leechpepin.com
|
||||||
group: Static Pages
|
group: Static Pages
|
||||||
|
@ -46,3 +48,60 @@ endpoints:
|
||||||
- "[STATUS] == 200"
|
- "[STATUS] == 200"
|
||||||
alerts:
|
alerts:
|
||||||
- type: ntfy
|
- 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
|
subPath: base-config.yaml
|
||||||
- name: collected
|
- name: collected
|
||||||
mountPath: /config/
|
mountPath: /config/
|
||||||
|
initContainers:
|
||||||
- name: config-collector
|
- name: config-collector
|
||||||
image: kiwigrid/k8s-sidecar:1.30.3
|
image: kiwigrid/k8s-sidecar:1.30.3
|
||||||
|
restartPolicy: Always
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: collected
|
- name: collected
|
||||||
mountPath: /config/
|
mountPath: /config/
|
||||||
|
@ -85,6 +87,17 @@ spec:
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: k8s-sidecar-settings
|
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:
|
volumes:
|
||||||
- configMap:
|
- configMap:
|
||||||
name: base-config
|
name: base-config
|
||||||
|
|
Loading…
Add table
Reference in a new issue