Skip to content

Commit

Permalink
Remove uptime-kuma not used and costs me money
Browse files Browse the repository at this point in the history
  • Loading branch information
mchestr committed Jul 13, 2024
1 parent 111a27c commit af4ef82
Show file tree
Hide file tree
Showing 20 changed files with 1 addition and 492 deletions.
18 changes: 0 additions & 18 deletions .taskfiles/TerraformTasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,3 @@ tasks:
dir: terraform/cloudflare
cmds:
- terraform apply {{.CLI_ARGS}}

gc:init:
desc: Initialize terraform dependencies
dir: terraform/google-cloud
cmds:
- terraform init {{.CLI_ARGS}}

gc:plan:
desc: Show the changes terraform will make
dir: terraform/google-cloud
cmds:
- terraform plan {{.CLI_ARGS}}

gc:apply:
desc: Apply the changes to Google Cloud
dir: terraform/google-cloud
cmds:
- terraform apply {{.CLI_ARGS}}
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@

<div>

[![Cluster](https://status.chestr.dev/api/badge/11/uptime/24?style=for-the-badge&color=blue)](https://status.chestr.dev "Uptime")

</div>
<div>

[![Discord](https://img.shields.io/discord/673534664354430999?style=for-the-badge&label&logo=discord&logoColor=white&color=blue)](https://discord.gg/k8s-at-home)
[![k8s](https://img.shields.io/badge/k8s-v1.30.2-blue?style=for-the-badge)](https://kubernetes.io/)
[![Talos](https://img.shields.io/badge/Talos-v1.7.4-blue?style=for-the-badge)](https://talos.dev "Talos OS")
Expand Down Expand Up @@ -65,7 +60,6 @@ This repository is my home Kubernetes cluster in a declarative state. [Flux](htt
- [AWS SES](https://aws.amazon.com/ses/) for sending emails.
- [Cloudflare](https://cloudflare.com) tunnels for exposing services & creating certificates & managing domains.
- [Cloudflare R2](https://www.cloudflare.com/developer-platform/r2/) for daily backups.
- [Google Cloud](https://cloud.google.com) to deploy [uptime-kuma](https://github.com/louislam/uptime-kuma) for external cluster monitoring.
- [Pushover](https://pushover.net/) for sending alerts.

Total cloud costs yearly is approximately ~$150/year.
Expand Down
1 change: 0 additions & 1 deletion ansible/playbooks/roles/config.router/tasks/dns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
- "{{ prefix }} options enable-tftp"
- "{{ prefix }} options tftp-root=/config/user-data/tftproot"
- "{{ prefix }} options port=53"
- "{{ prefix }} options server=/status.{{ cluster_domain }}/1.1.1.1"
- "{{ prefix }} options server=/{{ cluster_domain }}/192.168.100.111"
- "{{ prefix }} options dhcp-match=set:bios,60,PXEClient:Arch:00000"
- "{{ prefix }} options dhcp-boot=tag:bios,netboot.xyz.kpxe,,192.168.1.1"
Expand Down
37 changes: 0 additions & 37 deletions ansible/playbooks/roles/uptime-kuma-ping.router/tasks/main.yml

This file was deleted.

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions kubernetes/apps/default/homepage/app/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,6 @@ data:
- PiKVM:
href: https://pikvm.chestr.dev
icon: pikvm.png
- Monitoring:
- Status:
href: https://status.chestr.dev
icon: uptime-kuma.png
widget:
type: uptimekuma
url: https://status.chestr.dev
slug: chesterlab
- System:
- Mainsail:
href: https://mainsail.chestr.dev
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cloudflare
- google-cloud
12 changes: 1 addition & 11 deletions kubernetes/apps/monitoring/gatus/app/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,4 @@ alerting:
failure-threshold: 3
success-threshold: 3

endpoints:
- name: status
group: external
url: https://status.chestr.dev
interval: 10m
client:
dns-resolver: tcp://1.1.1.1:53
conditions:
- "[STATUS] == 200"
alerts:
- type: pushover
endpoints: []
12 changes: 0 additions & 12 deletions kubernetes/apps/monitoring/gatus/app/endpoints/certificates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,6 @@ metadata:
data:
config.yaml: |
endpoints:
- name: status.chestr.dev
group: certificates
url: "tls://status.chestr.dev:443"
interval: 24h
client:
dns-resolver: tcp://1.1.1.1:53
conditions:
- "[CONNECTED] == true"
- "[CERTIFICATE_EXPIRATION] > 336h"
alerts:
- type: pushover
- name: lochnas.chestr.dev
group: certificates
url: "tls://lochnas.chestr.dev:443"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,6 @@ spec:
replicas: 2
useExistingSecret: true
configSecret: alertmanager-secret
containers:
- name: uptime-kuma-proxy
image: ghcr.io/mchestr/alertmanager-uptime-kuma-proxy:v0.1.6
env:
- name: UPTIME_KUMA_BASE_URL
value: https://status.chestr.dev
ports:
- containerPort: 3000
name: proxy
protocol: TCP
storage:
volumeClaimTemplate:
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ inhibit_rules:
target_matchers:
- severity = "warning"
receivers:
- name: heartbeat
webhook_configs:
- url: http://localhost:3000/api/push/{{ .UPTIME_KUMA_ALERTMANAGER_TOKEN }}?status=up&msg=OK
send_resolved: true
- name: "null"
- name: pushover
pushover_configs:
Expand Down
97 changes: 0 additions & 97 deletions terraform/google-cloud/.terraform.lock.hcl

This file was deleted.

Loading

0 comments on commit af4ef82

Please sign in to comment.