Skip to content

Commit

Permalink
update gatus for hass
Browse files Browse the repository at this point in the history
  • Loading branch information
cbc02009 committed Apr 24, 2024
1 parent 91f01d9 commit 5927a53
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .taskfiles/VolSync/templates/replicationdestination.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@ spec:
repository: ${app}-volsync-minio
destinationPVC: ${claim}
copyMethod: Direct
storageClassName: ceph-block
# storageClassName: ceph-filesystem
# accessModes: ["ReadWriteMany"]
# storageClassName: ceph-block
storageClassName: ceph-filesystem
accessModes: ["ReadWriteMany"]
# IMPORTANT NOTE:
# Set to the last X number of snapshots to restore from
# previous: ${previous}
previous: ${previous}
# OR;
# IMPORTANT NOTE:
# On bootstrap set `restoreAsOf` to the time the old cluster was destroyed.
# This will essentially prevent volsync from trying to restore a backup
# from a application that started with default data in the PVC.
# Do not restore snapshots made after the following RFC3339 Timestamp.
# date --rfc-3339=seconds (--utc)
restoreAsOf: "2024-04-14T05:00:00-05:00"
# restoreAsOf: "2024-04-02T05:00:00-05:00"
moverSecurityContext:
runAsUser: ${puid}
runAsGroup: ${pgid}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: hass-code-gatus-ep
labels:
gatus.io/enabled: "true"
data:
config.yaml: |
endpoints:
- name: hass-code
group: guarded
url: 1.1.1.1
interval: 1m
ui:
hide-hostname: true
hide-url: true
dns:
query-name: hass-code.kokoro.wtf
query-type: A
conditions:
- "len([BODY]) == 0"
alerts:
- type: discord
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./externalsecret.yaml
- ./gatus-custom.yaml
- ./helmrelease.yaml
- ../../../../templates/gatus/guarded
- ../../../../templates/volsync
- ../../../../templates/gatus/guarded

0 comments on commit 5927a53

Please sign in to comment.