2026-03-07 14:30:36 +00:00
|
|
|
|
variable "tls_secret_name" {
|
2026-03-14 08:51:45 +00:00
|
|
|
|
type = string
|
2026-03-07 14:30:36 +00:00
|
|
|
|
sensitive = true
|
|
|
|
|
|
}
|
[ci skip] Infrastructure hardening: security, monitoring, reliability, maintainability
Phase 1 - Critical Security:
- Netbox: move hardcoded DB/superuser passwords to variables
- MeshCentral: disable public registration, add Authentik auth
- Traefik: disable insecure API dashboard (api.insecure=false)
- Traefik: configure forwarded headers with Cloudflare trusted IPs
Phase 2 - Security Hardening:
- Add security headers middleware (HSTS, X-Frame-Options, nosniff, etc.)
- Add Kyverno pod security policies in audit mode (privileged, host
namespaces, SYS_ADMIN, trusted registries)
- Tighten rate limiting (avg=10, burst=50)
- Add Authentik protection to grampsweb
Phase 3 - Monitoring & Alerting:
- Add critical service alerts (PostgreSQL, MySQL, Redis, Headscale,
Authentik, Loki)
- Increase Loki retention from 7 to 30 days (720h)
- Add predictive PV filling alert (predict_linear)
- Re-enable Hackmd and Privatebin down alerts
Phase 4 - Reliability:
- Add resource requests/limits to Redis, DBaaS, Technitium, Headscale,
Vaultwarden, Uptime Kuma
- Increase Alloy DaemonSet memory to 512Mi/1Gi
Phase 6 - Maintainability:
- Extract duplicated tiers locals to terragrunt.hcl generate block
(removed from 67 stacks)
- Replace hardcoded NFS IP 10.0.10.15 with var.nfs_server (114
instances across 63 files)
- Replace hardcoded Redis/PostgreSQL/MySQL/Ollama/mail host references
with variables across ~35 stacks
- Migrate xray raw ingress resources to ingress_factory modules
2026-02-23 22:05:28 +00:00
|
|
|
|
variable "nfs_server" { type = string }
|
|
|
|
|
|
variable "mysql_host" { type = string }
|
2026-02-22 13:56:34 +00:00
|
|
|
|
|
2026-02-22 15:13:55 +00:00
|
|
|
|
resource "kubernetes_namespace" "speedtest" {
|
|
|
|
|
|
metadata {
|
|
|
|
|
|
name = "speedtest"
|
|
|
|
|
|
labels = {
|
|
|
|
|
|
tier = local.tiers.aux
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
migrate consuming stacks to ESO + remove k8s-dashboard static token
Phase 9: ExternalSecret migration across 26 stacks:
Fully migrated (vault data source removed, ESO delivers secrets):
- speedtest, shadowsocks, wealthfolio, plotting-book, f1-stream, tandoor
- n8n, dawarich, diun, netbox, onlyoffice, tuya-bridge
- hackmd (ESO template for DB URL), health (ESO template for DB URL)
- trading-bot (ESO template for DATABASE_URL + 7 secret env vars)
- forgejo (removed unused vault data source)
Partially migrated (vault kept for plan-time, ESO added for runtime):
- immich, linkwarden, nextcloud, paperless-ngx (jsondecode for homepage)
- claude-memory, rybbit, url, webhook_handler (plan-time in locals/jobs)
- woodpecker, openclaw, resume (plan-time in helm values/jobs/modules)
17 stacks unchanged (all plan-time: homepage annotations, configmaps,
module inputs) — vault data source works with OIDC auth.
Phase 17a: Remove k8s-dashboard static admin token secret.
Users now get tokens via: vault write kubernetes/creds/dashboard-admin
2026-03-15 19:05:04 +00:00
|
|
|
|
resource "kubernetes_manifest" "external_secret" {
|
|
|
|
|
|
manifest = {
|
|
|
|
|
|
apiVersion = "external-secrets.io/v1beta1"
|
|
|
|
|
|
kind = "ExternalSecret"
|
|
|
|
|
|
metadata = {
|
|
|
|
|
|
name = "speedtest-secrets"
|
|
|
|
|
|
namespace = "speedtest"
|
|
|
|
|
|
}
|
|
|
|
|
|
spec = {
|
|
|
|
|
|
refreshInterval = "15m"
|
|
|
|
|
|
secretStoreRef = {
|
fix DB password desync + migrate remaining tfvars to Vault
DB desync fix: Stacks with Vault DB engine rotation (24h) now read
the password from vault-database ClusterSecretStore instead of vault-kv.
9 stacks updated with db ExternalSecrets reading from static-creds/*.
Stacks fixed: speedtest, hackmd, health, trading-bot, claude-memory,
woodpecker, linkwarden, nextcloud, url.
terraform.tfvars migration:
- plotting-book: google_client_id/secret → Vault KV + secret_key_ref
- tandoor: email_password var removed (was default="", now optional ESO)
- infra: ssh_private_key, vm_wizard_password, dockerhub_registry_password
→ Vault KV at secret/infra + data source
2026-03-15 21:39:45 +00:00
|
|
|
|
name = "vault-database"
|
migrate consuming stacks to ESO + remove k8s-dashboard static token
Phase 9: ExternalSecret migration across 26 stacks:
Fully migrated (vault data source removed, ESO delivers secrets):
- speedtest, shadowsocks, wealthfolio, plotting-book, f1-stream, tandoor
- n8n, dawarich, diun, netbox, onlyoffice, tuya-bridge
- hackmd (ESO template for DB URL), health (ESO template for DB URL)
- trading-bot (ESO template for DATABASE_URL + 7 secret env vars)
- forgejo (removed unused vault data source)
Partially migrated (vault kept for plan-time, ESO added for runtime):
- immich, linkwarden, nextcloud, paperless-ngx (jsondecode for homepage)
- claude-memory, rybbit, url, webhook_handler (plan-time in locals/jobs)
- woodpecker, openclaw, resume (plan-time in helm values/jobs/modules)
17 stacks unchanged (all plan-time: homepage annotations, configmaps,
module inputs) — vault data source works with OIDC auth.
Phase 17a: Remove k8s-dashboard static admin token secret.
Users now get tokens via: vault write kubernetes/creds/dashboard-admin
2026-03-15 19:05:04 +00:00
|
|
|
|
kind = "ClusterSecretStore"
|
|
|
|
|
|
}
|
|
|
|
|
|
target = {
|
|
|
|
|
|
name = "speedtest-secrets"
|
|
|
|
|
|
}
|
fix DB password desync + migrate remaining tfvars to Vault
DB desync fix: Stacks with Vault DB engine rotation (24h) now read
the password from vault-database ClusterSecretStore instead of vault-kv.
9 stacks updated with db ExternalSecrets reading from static-creds/*.
Stacks fixed: speedtest, hackmd, health, trading-bot, claude-memory,
woodpecker, linkwarden, nextcloud, url.
terraform.tfvars migration:
- plotting-book: google_client_id/secret → Vault KV + secret_key_ref
- tandoor: email_password var removed (was default="", now optional ESO)
- infra: ssh_private_key, vm_wizard_password, dockerhub_registry_password
→ Vault KV at secret/infra + data source
2026-03-15 21:39:45 +00:00
|
|
|
|
data = [{
|
|
|
|
|
|
secretKey = "db_password"
|
|
|
|
|
|
remoteRef = {
|
|
|
|
|
|
key = "static-creds/mysql-speedtest"
|
|
|
|
|
|
property = "password"
|
migrate consuming stacks to ESO + remove k8s-dashboard static token
Phase 9: ExternalSecret migration across 26 stacks:
Fully migrated (vault data source removed, ESO delivers secrets):
- speedtest, shadowsocks, wealthfolio, plotting-book, f1-stream, tandoor
- n8n, dawarich, diun, netbox, onlyoffice, tuya-bridge
- hackmd (ESO template for DB URL), health (ESO template for DB URL)
- trading-bot (ESO template for DATABASE_URL + 7 secret env vars)
- forgejo (removed unused vault data source)
Partially migrated (vault kept for plan-time, ESO added for runtime):
- immich, linkwarden, nextcloud, paperless-ngx (jsondecode for homepage)
- claude-memory, rybbit, url, webhook_handler (plan-time in locals/jobs)
- woodpecker, openclaw, resume (plan-time in helm values/jobs/modules)
17 stacks unchanged (all plan-time: homepage annotations, configmaps,
module inputs) — vault data source works with OIDC auth.
Phase 17a: Remove k8s-dashboard static admin token secret.
Users now get tokens via: vault write kubernetes/creds/dashboard-admin
2026-03-15 19:05:04 +00:00
|
|
|
|
}
|
|
|
|
|
|
}]
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
depends_on = [kubernetes_namespace.speedtest]
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-22 15:13:55 +00:00
|
|
|
|
module "tls_secret" {
|
|
|
|
|
|
source = "../../modules/kubernetes/setup_tls_secret"
|
|
|
|
|
|
namespace = kubernetes_namespace.speedtest.metadata[0].name
|
|
|
|
|
|
tls_secret_name = var.tls_secret_name
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
resource "random_id" "secret_key" {
|
|
|
|
|
|
byte_length = 32 # 32 bytes × 2 hex chars = 64 hex characters
|
|
|
|
|
|
}
|
|
|
|
|
|
|
feat(storage): migrate 38 NFS PVCs to proxmox-lvm (Wave 2)
Add proxmox-lvm PVCs with pvc-autoresizer annotations for all
remaining single-pod app data services. Deployments updated to
use new block storage PVCs. Old NFS modules retained for rollback.
Services: affine, changedetection, diun, excalidraw, f1-stream,
hackmd, isponsorblocktv, matrix, n8n, send, grampsweb, health,
onlyoffice, owntracks, paperless-ngx, privatebin, resume,
speedtest, stirling-pdf, tandoor, rybbit (clickhouse), tor-proxy
(torrserver), whisper+piper, frigate (config), ollama (ui),
servarr (prowlarr/listenarr/qbittorrent), aiostreams, freshrss
(extensions), meshcentral (data+files), openclaw (data+home+
openlobster), technitium, mailserver (data+roundcube html+enigma),
dbaas (pgadmin).
Strategy set to Recreate where needed for RWO volumes.
2026-04-04 19:25:12 +03:00
|
|
|
|
resource "kubernetes_persistent_volume_claim" "config_proxmox" {
|
|
|
|
|
|
wait_until_bound = false
|
|
|
|
|
|
metadata {
|
|
|
|
|
|
name = "speedtest-config-proxmox"
|
|
|
|
|
|
namespace = kubernetes_namespace.speedtest.metadata[0].name
|
|
|
|
|
|
annotations = {
|
|
|
|
|
|
"resize.topolvm.io/threshold" = "80%"
|
|
|
|
|
|
"resize.topolvm.io/increase" = "100%"
|
|
|
|
|
|
"resize.topolvm.io/storage_limit" = "5Gi"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
spec {
|
|
|
|
|
|
access_modes = ["ReadWriteOnce"]
|
|
|
|
|
|
storage_class_name = "proxmox-lvm"
|
|
|
|
|
|
resources {
|
|
|
|
|
|
requests = {
|
|
|
|
|
|
storage = "1Gi"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-02-22 15:13:55 +00:00
|
|
|
|
resource "kubernetes_deployment" "speedtest" {
|
|
|
|
|
|
metadata {
|
|
|
|
|
|
name = "speedtest"
|
|
|
|
|
|
namespace = kubernetes_namespace.speedtest.metadata[0].name
|
|
|
|
|
|
labels = {
|
|
|
|
|
|
app = "speedtest"
|
|
|
|
|
|
tier = local.tiers.aux
|
|
|
|
|
|
}
|
migrate consuming stacks to ESO + remove k8s-dashboard static token
Phase 9: ExternalSecret migration across 26 stacks:
Fully migrated (vault data source removed, ESO delivers secrets):
- speedtest, shadowsocks, wealthfolio, plotting-book, f1-stream, tandoor
- n8n, dawarich, diun, netbox, onlyoffice, tuya-bridge
- hackmd (ESO template for DB URL), health (ESO template for DB URL)
- trading-bot (ESO template for DATABASE_URL + 7 secret env vars)
- forgejo (removed unused vault data source)
Partially migrated (vault kept for plan-time, ESO added for runtime):
- immich, linkwarden, nextcloud, paperless-ngx (jsondecode for homepage)
- claude-memory, rybbit, url, webhook_handler (plan-time in locals/jobs)
- woodpecker, openclaw, resume (plan-time in helm values/jobs/modules)
17 stacks unchanged (all plan-time: homepage annotations, configmaps,
module inputs) — vault data source works with OIDC auth.
Phase 17a: Remove k8s-dashboard static admin token secret.
Users now get tokens via: vault write kubernetes/creds/dashboard-admin
2026-03-15 19:05:04 +00:00
|
|
|
|
annotations = {
|
|
|
|
|
|
"reloader.stakater.com/auto" = "true"
|
|
|
|
|
|
}
|
2026-02-22 15:13:55 +00:00
|
|
|
|
}
|
|
|
|
|
|
spec {
|
|
|
|
|
|
replicas = 1
|
feat(storage): migrate 38 NFS PVCs to proxmox-lvm (Wave 2)
Add proxmox-lvm PVCs with pvc-autoresizer annotations for all
remaining single-pod app data services. Deployments updated to
use new block storage PVCs. Old NFS modules retained for rollback.
Services: affine, changedetection, diun, excalidraw, f1-stream,
hackmd, isponsorblocktv, matrix, n8n, send, grampsweb, health,
onlyoffice, owntracks, paperless-ngx, privatebin, resume,
speedtest, stirling-pdf, tandoor, rybbit (clickhouse), tor-proxy
(torrserver), whisper+piper, frigate (config), ollama (ui),
servarr (prowlarr/listenarr/qbittorrent), aiostreams, freshrss
(extensions), meshcentral (data+files), openclaw (data+home+
openlobster), technitium, mailserver (data+roundcube html+enigma),
dbaas (pgadmin).
Strategy set to Recreate where needed for RWO volumes.
2026-04-04 19:25:12 +03:00
|
|
|
|
strategy {
|
|
|
|
|
|
type = "Recreate"
|
|
|
|
|
|
}
|
2026-02-22 15:13:55 +00:00
|
|
|
|
selector {
|
|
|
|
|
|
match_labels = {
|
|
|
|
|
|
app = "speedtest"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
template {
|
|
|
|
|
|
metadata {
|
|
|
|
|
|
labels = {
|
|
|
|
|
|
app = "speedtest"
|
|
|
|
|
|
}
|
2026-03-15 19:17:44 +00:00
|
|
|
|
annotations = {
|
feat: pin ~28 images to specific versions, enable DIUN monitoring, add app-stacks pipeline
Pin third-party images from :latest to current stable versions:
- Platform: cloudflared, technitium, snmp-exporter, pve-exporter,
headscale, shadowsocks, xray
- Apps: paperless-ngx, linkwarden, wealthfolio, speedtest, synapse,
n8n, prowlarr, qbittorrent, lidarr, rybbit, ollama, immichframe,
cyberchef, networking-toolbox, echo, coturn, shlink, affine
Enable DIUN annotations on all pinned deployments with per-image
tag patterns. Add Woodpecker app-stacks pipeline for selective
terragrunt apply on changed app stacks.
2026-04-06 14:27:13 +03:00
|
|
|
|
"diun.enable" = "true"
|
|
|
|
|
|
"diun.include_tags" = "^\\d+\\.\\d+\\.\\d+$"
|
2026-03-15 19:17:44 +00:00
|
|
|
|
"dependency.kyverno.io/wait-for" = "mysql.dbaas:3306"
|
|
|
|
|
|
}
|
2026-02-22 15:13:55 +00:00
|
|
|
|
}
|
|
|
|
|
|
spec {
|
|
|
|
|
|
container {
|
feat: pin ~28 images to specific versions, enable DIUN monitoring, add app-stacks pipeline
Pin third-party images from :latest to current stable versions:
- Platform: cloudflared, technitium, snmp-exporter, pve-exporter,
headscale, shadowsocks, xray
- Apps: paperless-ngx, linkwarden, wealthfolio, speedtest, synapse,
n8n, prowlarr, qbittorrent, lidarr, rybbit, ollama, immichframe,
cyberchef, networking-toolbox, echo, coturn, shlink, affine
Enable DIUN annotations on all pinned deployments with per-image
tag patterns. Add Woodpecker app-stacks pipeline for selective
terragrunt apply on changed app stacks.
2026-04-06 14:27:13 +03:00
|
|
|
|
image = "lscr.io/linuxserver/speedtest-tracker:0.24.1"
|
2026-02-22 15:13:55 +00:00
|
|
|
|
name = "speedtest"
|
|
|
|
|
|
port {
|
|
|
|
|
|
container_port = 80
|
|
|
|
|
|
}
|
|
|
|
|
|
env {
|
|
|
|
|
|
name = "PUID"
|
|
|
|
|
|
value = 1000
|
|
|
|
|
|
}
|
|
|
|
|
|
env {
|
|
|
|
|
|
name = "PGID"
|
|
|
|
|
|
value = 1000
|
|
|
|
|
|
}
|
|
|
|
|
|
env {
|
|
|
|
|
|
name = "APP_KEY"
|
|
|
|
|
|
value = "base64:${random_id.secret_key.b64_std}"
|
|
|
|
|
|
}
|
|
|
|
|
|
env {
|
|
|
|
|
|
name = "SPEEDTEST_SCHEDULE"
|
|
|
|
|
|
value = "0 * * * *"
|
|
|
|
|
|
}
|
|
|
|
|
|
# env {
|
|
|
|
|
|
# name = "SPEEDTEST_SERVERS"
|
|
|
|
|
|
# # Sofia speedtest servers - https://c.speedtest.net/speedtest-servers-static.php
|
|
|
|
|
|
# value = "7617,17787,11348,37980,54640,27843,57118,10754,20191,29617"
|
|
|
|
|
|
# }
|
|
|
|
|
|
env {
|
|
|
|
|
|
name = "APP_URL"
|
|
|
|
|
|
value = "https://speedtest.viktorbarzin.me"
|
|
|
|
|
|
}
|
|
|
|
|
|
env {
|
|
|
|
|
|
name = "DB_CONNECTION"
|
|
|
|
|
|
value = "mysql"
|
|
|
|
|
|
}
|
|
|
|
|
|
env {
|
|
|
|
|
|
name = "DB_HOST"
|
[ci skip] Infrastructure hardening: security, monitoring, reliability, maintainability
Phase 1 - Critical Security:
- Netbox: move hardcoded DB/superuser passwords to variables
- MeshCentral: disable public registration, add Authentik auth
- Traefik: disable insecure API dashboard (api.insecure=false)
- Traefik: configure forwarded headers with Cloudflare trusted IPs
Phase 2 - Security Hardening:
- Add security headers middleware (HSTS, X-Frame-Options, nosniff, etc.)
- Add Kyverno pod security policies in audit mode (privileged, host
namespaces, SYS_ADMIN, trusted registries)
- Tighten rate limiting (avg=10, burst=50)
- Add Authentik protection to grampsweb
Phase 3 - Monitoring & Alerting:
- Add critical service alerts (PostgreSQL, MySQL, Redis, Headscale,
Authentik, Loki)
- Increase Loki retention from 7 to 30 days (720h)
- Add predictive PV filling alert (predict_linear)
- Re-enable Hackmd and Privatebin down alerts
Phase 4 - Reliability:
- Add resource requests/limits to Redis, DBaaS, Technitium, Headscale,
Vaultwarden, Uptime Kuma
- Increase Alloy DaemonSet memory to 512Mi/1Gi
Phase 6 - Maintainability:
- Extract duplicated tiers locals to terragrunt.hcl generate block
(removed from 67 stacks)
- Replace hardcoded NFS IP 10.0.10.15 with var.nfs_server (114
instances across 63 files)
- Replace hardcoded Redis/PostgreSQL/MySQL/Ollama/mail host references
with variables across ~35 stacks
- Migrate xray raw ingress resources to ingress_factory modules
2026-02-23 22:05:28 +00:00
|
|
|
|
value = var.mysql_host
|
2026-02-22 15:13:55 +00:00
|
|
|
|
}
|
|
|
|
|
|
env {
|
|
|
|
|
|
name = "DB_DATABASE"
|
|
|
|
|
|
value = "speedtest"
|
|
|
|
|
|
}
|
|
|
|
|
|
env {
|
|
|
|
|
|
name = "DB_USERNAME"
|
|
|
|
|
|
value = "speedtest"
|
|
|
|
|
|
}
|
|
|
|
|
|
env {
|
migrate consuming stacks to ESO + remove k8s-dashboard static token
Phase 9: ExternalSecret migration across 26 stacks:
Fully migrated (vault data source removed, ESO delivers secrets):
- speedtest, shadowsocks, wealthfolio, plotting-book, f1-stream, tandoor
- n8n, dawarich, diun, netbox, onlyoffice, tuya-bridge
- hackmd (ESO template for DB URL), health (ESO template for DB URL)
- trading-bot (ESO template for DATABASE_URL + 7 secret env vars)
- forgejo (removed unused vault data source)
Partially migrated (vault kept for plan-time, ESO added for runtime):
- immich, linkwarden, nextcloud, paperless-ngx (jsondecode for homepage)
- claude-memory, rybbit, url, webhook_handler (plan-time in locals/jobs)
- woodpecker, openclaw, resume (plan-time in helm values/jobs/modules)
17 stacks unchanged (all plan-time: homepage annotations, configmaps,
module inputs) — vault data source works with OIDC auth.
Phase 17a: Remove k8s-dashboard static admin token secret.
Users now get tokens via: vault write kubernetes/creds/dashboard-admin
2026-03-15 19:05:04 +00:00
|
|
|
|
name = "DB_PASSWORD"
|
|
|
|
|
|
value_from {
|
|
|
|
|
|
secret_key_ref {
|
|
|
|
|
|
name = "speedtest-secrets"
|
|
|
|
|
|
key = "db_password"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2026-02-22 15:13:55 +00:00
|
|
|
|
}
|
2026-03-15 02:33:46 +00:00
|
|
|
|
env {
|
|
|
|
|
|
name = "DB_PORT"
|
|
|
|
|
|
value = "3306"
|
|
|
|
|
|
}
|
2026-02-22 15:13:55 +00:00
|
|
|
|
env {
|
|
|
|
|
|
name = "APP_TIMEZONE"
|
|
|
|
|
|
value = "Europe/Sofia"
|
|
|
|
|
|
}
|
2026-02-28 21:59:08 +00:00
|
|
|
|
resources {
|
|
|
|
|
|
requests = {
|
|
|
|
|
|
cpu = "25m"
|
2026-03-27 13:57:16 +02:00
|
|
|
|
memory = "128Mi"
|
2026-02-28 21:59:08 +00:00
|
|
|
|
}
|
|
|
|
|
|
limits = {
|
2026-03-27 13:57:16 +02:00
|
|
|
|
memory = "512Mi"
|
2026-02-28 21:59:08 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2026-02-22 15:13:55 +00:00
|
|
|
|
volume_mount {
|
|
|
|
|
|
name = "config"
|
|
|
|
|
|
mount_path = "/config"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
volume {
|
|
|
|
|
|
name = "config"
|
2026-03-01 23:42:23 +00:00
|
|
|
|
persistent_volume_claim {
|
feat(storage): migrate 38 NFS PVCs to proxmox-lvm (Wave 2)
Add proxmox-lvm PVCs with pvc-autoresizer annotations for all
remaining single-pod app data services. Deployments updated to
use new block storage PVCs. Old NFS modules retained for rollback.
Services: affine, changedetection, diun, excalidraw, f1-stream,
hackmd, isponsorblocktv, matrix, n8n, send, grampsweb, health,
onlyoffice, owntracks, paperless-ngx, privatebin, resume,
speedtest, stirling-pdf, tandoor, rybbit (clickhouse), tor-proxy
(torrserver), whisper+piper, frigate (config), ollama (ui),
servarr (prowlarr/listenarr/qbittorrent), aiostreams, freshrss
(extensions), meshcentral (data+files), openclaw (data+home+
openlobster), technitium, mailserver (data+roundcube html+enigma),
dbaas (pgadmin).
Strategy set to Recreate where needed for RWO volumes.
2026-04-04 19:25:12 +03:00
|
|
|
|
claim_name = kubernetes_persistent_volume_claim.config_proxmox.metadata[0].name
|
2026-02-22 15:13:55 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
resource "kubernetes_service" "speedtest" {
|
|
|
|
|
|
metadata {
|
|
|
|
|
|
name = "speedtest"
|
|
|
|
|
|
namespace = kubernetes_namespace.speedtest.metadata[0].name
|
|
|
|
|
|
labels = {
|
|
|
|
|
|
"app" = "speedtest"
|
|
|
|
|
|
}
|
|
|
|
|
|
annotations = {
|
2026-04-15 15:12:32 +00:00
|
|
|
|
"prometheus.io/scrape" = "false"
|
2026-02-22 15:13:55 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
spec {
|
|
|
|
|
|
selector = {
|
|
|
|
|
|
app = "speedtest"
|
|
|
|
|
|
}
|
|
|
|
|
|
port {
|
|
|
|
|
|
name = "http"
|
|
|
|
|
|
port = 80
|
|
|
|
|
|
target_port = 80
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
module "ingress" {
|
|
|
|
|
|
source = "../../modules/kubernetes/ingress_factory"
|
2026-04-16 13:45:04 +00:00
|
|
|
|
dns_type = "proxied"
|
2026-02-22 15:13:55 +00:00
|
|
|
|
namespace = kubernetes_namespace.speedtest.metadata[0].name
|
|
|
|
|
|
name = "speedtest"
|
|
|
|
|
|
tls_secret_name = var.tls_secret_name
|
|
|
|
|
|
protected = true
|
2026-03-07 16:41:36 +00:00
|
|
|
|
extra_annotations = {
|
|
|
|
|
|
"gethomepage.dev/enabled" = "true"
|
|
|
|
|
|
"gethomepage.dev/name" = "Speedtest"
|
|
|
|
|
|
"gethomepage.dev/description" = "Internet speed tracker"
|
|
|
|
|
|
"gethomepage.dev/icon" = "speedtest-tracker.png"
|
|
|
|
|
|
"gethomepage.dev/group" = "Infrastructure"
|
|
|
|
|
|
"gethomepage.dev/widget.type" = "speedtest"
|
2026-03-07 17:39:24 +00:00
|
|
|
|
"gethomepage.dev/widget.url" = "http://speedtest.speedtest.svc.cluster.local"
|
2026-03-07 16:41:36 +00:00
|
|
|
|
"gethomepage.dev/pod-selector" = ""
|
|
|
|
|
|
}
|
2026-02-22 13:56:34 +00:00
|
|
|
|
}
|