From 7967eead8e39ba8ccb23725c5675eb75bf34a565 Mon Sep 17 00:00:00 2001 From: Snarf Date: Tue, 10 Nov 2026 22:56:07 -0500 Subject: [PATCH] feat(homepage): add dual longhorn, glances, rancher, portainer, and tempest weather widgets --- manifests/spaceport/homepage/homepage.yaml | 195 +++++++++++++++++---- 1 file changed, 165 insertions(+), 30 deletions(-) diff --git a/manifests/spaceport/homepage/homepage.yaml b/manifests/spaceport/homepage/homepage.yaml index dd161d1..e7f1aaa 100644 --- a/manifests/spaceport/homepage/homepage.yaml +++ b/manifests/spaceport/homepage/homepage.yaml @@ -148,38 +148,173 @@ spec: --- apiVersion: v1 data: - bookmarks.yaml: "- Developer:\n - Github:\n - abbr: GH\n href: https://github.com/\n" + bookmarks.yaml: | + - Developer: + - Github: + - abbr: GH + href: https://github.com/ docker.yaml: '' - kubernetes.yaml: 'mode: disable + kubernetes.yaml: | + mode: disable + services.yaml: | + - Critical Services: + - Authentik: + icon: authentik.png + href: https://authentik.snarfnet.net + widget: + type: authentik + url: https://authentik.snarfnet.net + fields: ["users", "loginsLast24H", "failedLoginsLast24H"] + key: 7HamapUhYizcNudHDIT5IFy3XEpRgeKgqr1Pw4ub9eTpAjMAzB8Aur1Z6dUU + - PeaNUT UPS: + icon: peanut.png + href: https://portal.snarfnet.net + widget: + type: peanut + url: https://peanut.snarfnet.net + fields: ["battery_charge", "ups_load", "ups_status"] + key: server-closet + - Unifi Controller: + icon: unifi.png + href: https://unifi.ui.com + widget: + type: unifi + url: https://140.44.44.1 + username: Snarf + password: Katzir476!!! - ' - services.yaml: "- Critical Services:\n - Authentik:\n icon: authentik.png\n\ - \ href: https://authentik.snarfnet.net\n widget:\n type: authentik\n\ - \ url: https://authentik.snarfnet.net\n fields: [\"users\", \"loginsLast24H\"\ - , \"failedLoginsLast24H\"]\n key: 7HamapUhYizcNudHDIT5IFy3XEpRgeKgqr1Pw4ub9eTpAjMAzB8Aur1Z6dUU\n\ - \ - PeaNUT UPS:\n icon: peanut.png\n href: https://portal.snarfnet.net\n\ - \ widget:\n type: peanut\n url: https://peanut.snarfnet.net\n\ - \ fields: [\"battery_charge\", \"ups_load\", \"ups_status\"]\n key:\ - \ server-closet\n - Unifi Controller:\n icon: unifi.png\n href: https://unifi.ui.com\n\ - \ widget:\n type: unifi\n url: https://140.44.44.1\n username:\ - \ Snarf\n password: Katzir476!!!\n- Git Ops:\n - Gitea:\n icon: gitea.png\n\ - \ href: https://git.snarfnet.net\n widget:\n type: gitea\n \ - \ url: https://git.snarfnet.net\n fields: [\"repositories\", \"notifications\"\ - , \"issues\", \"pulls\"]\n key: 47c10c54574131c007302b246352f653facb5062\n\ - - Infrastructure:\n - NGINX proxy manager:\n icon: nginx-proxy-manager\n\ - \ href: https://nginx.snarfnet.net\n widget:\n type: npm\n \ - \ url: https://nginx.snarfnet.net\n fields: [\"enabled\", \"disabled\"\ - , \"total\"]\n username: snarf@snarfnet.net\n password: Katzir476!\n\ - \ - Uptime Kuma:\n icon: uptime-kuma\n href: https://uptime.snarfnet.net\n\ - \ widget:\n type: uptimekuma\n url: https://uptime.snarfnet.net\n\ - \ fields: [\"up\", \"down\", \"uptime\", \"incident\"]\n slug: public\n" - settings.yaml: "title: SnarfNet Landing Zone\nheaderStyle: boxedWidgets\ncolor:\ - \ green\ntheme: dark\nlayout:\n Critical Services:\n Git Ops:\n Infrastructure:\n\ - showStats: true\nproviders:\n longhorn:\n url: https://longhorn.aerodrome.snarfnet.net\n" - widgets.yaml: "- resources:\n backend: resources\n cpu: true\n expanded:\ - \ true\n memory: true\n- search:\n provider: duckduckgo\n target: _blank\n\ - - longhorn:\n expanded: true\n total: true\n labels: true\n nodes:\ - \ true\n" + - GitOps & Automation: + - Gitea: + icon: gitea.png + href: https://git.snarfnet.net + widget: + type: gitea + url: https://git.snarfnet.net + fields: ["repositories", "notifications", "issues", "pulls"] + key: 47c10c54574131c007302b246352f653facb5062 + - ArgoCD: + icon: argocd.png + href: https://argo.snarfnet.net + - AWX Automation: + icon: awx.png + href: https://awx.snarfnet.net + - Semaphore: + icon: semaphore.png + href: https://semaphore.snarfnet.net + + - Storage & Clusters: + - Longhorn Aerodrome: + icon: longhorn.png + href: https://longhorn.aerodrome.snarfnet.net + widget: + type: longhorn + url: https://longhorn.aerodrome.snarfnet.net + - Longhorn Spaceport: + icon: longhorn.png + href: https://longhorn.spaceport.snarfnet.net + widget: + type: longhorn + url: https://longhorn.spaceport.snarfnet.net + - Rancher (Aerodrome): + icon: rancher.png + href: https://aerodrome.snarfnet.net + widget: + type: rancher + url: https://aerodrome.snarfnet.net + cluster: local + - Harvester HCI (Spacedock): + icon: harvester.png + href: https://harvester.spacedock.snarfnet.net + - Portainer Swarm: + icon: portainer.png + href: https://shipyard.snarfnet.net + widget: + type: portainer + url: https://shipyard.snarfnet.net + env: 1 + + - Infrastructure & Observability: + - NGINX Proxy Manager: + icon: nginx-proxy-manager + href: https://nginx.snarfnet.net + widget: + type: npm + url: https://nginx.snarfnet.net + fields: ["enabled", "disabled", "total"] + username: snarf@snarfnet.net + password: Katzir476! + - Uptime Kuma: + icon: uptime-kuma + href: https://uptime.snarfnet.net + widget: + type: uptimekuma + url: https://uptime.snarfnet.net + fields: ["up", "down", "uptime", "incident"] + slug: public + - Zabbix: + icon: zabbix.png + href: https://zabbix.snarfnet.net + - Grafana: + icon: grafana.png + href: https://grafana.snarfnet.net + - Core Node Glances: + icon: glances.png + href: http://140.44.4.11:61208 + widget: + type: glances + url: http://140.44.4.11:61208 + version: 4 + metric: cpu + + - Environment & Weather: + - Tempest Weather Station: + icon: weather.png + href: https://snarfhome.snarfnet.net + description: Backyard Weather Telemetry + widget: + type: homeassistant + url: http://14.4.4.20:8123 + key: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIzZWUyNTE1MDk0NGU0ZjRjYmJkMGM1MWI5MThmY2EzYiIsImlhdCI6MTc0NjgxMDM3NSwiZXhwIjoyMDYyMTcwMzc1fQ.Le6M7WL63nxtLTxccFacQR5GVUY5C-a_zGtmXT_uaz4 + custom: + - state: sensor.tempest_st_temperature + label: Outdoor Temp + - state: sensor.tempest_st_wind_speed + label: Wind Speed + - state: sensor.tempest_st_humidity + label: Humidity + - state: sensor.tempest_st_rain_rate + label: Rain Rate + + settings.yaml: | + title: SnarfNet Operations & Telemetry + headerStyle: boxedWidgets + color: green + theme: dark + layout: + Critical Services: + GitOps & Automation: + Storage & Clusters: + Infrastructure & Observability: + Environment & Weather: + showStats: true + providers: + longhorn: + url: https://longhorn.aerodrome.snarfnet.net + + widgets.yaml: | + - resources: + backend: resources + cpu: true + expanded: true + memory: true + - search: + provider: duckduckgo + target: _blank + - longhorn: + expanded: true + total: true + labels: true + nodes: true kind: ConfigMap metadata: annotations: