speedtest-tracker

by harish2k01

Helm chartv0.3.2App 1.15.1MITVerified publisher

A Helm chart for deploying Speedtest Tracker on Kubernetes

About this chart

Speedtest Tracker Helm Chart

Browse the Helm chart catalog to explore available charts and installation commands.

This chart deploys Speedtest Tracker on Kubernetes.

[!NOTE] This is an unofficial community Helm chart maintained by harish2k01. It is not affiliated with or endorsed by the upstream project. For chart issues, questions, or improvements, please open an issue in the harish2k01/helm-charts repository.

Install From OCI

This chart is also published as an OCI chart in GHCR. Use the same values and namespace flags with the OCI reference:

helm install speedtest-tracker oci://ghcr.io/harish2k01/helm-charts/speedtest-tracker --version 0.3.2

Database Configuration

The chart supports three deployment options for databases:

  1. SQLite (Default) - Best for single-instance deployments and testing
  2. Built-in Database - MariaDB, MySQL, or PostgreSQL as a StatefulSet
  3. External Database - Connect to an existing database outside the cluster

Option 1: SQLite (Default - No Setup Required)

SQLite is the default and requires no additional configuration:

kubectl create secret generic speedtest-tracker-secrets \
  --from-literal=APP_KEY='base64:YOUR_GENERATED_KEY'

helm install speedtest-tracker harish2k01/speedtest-tracker \
  --set speedtestTracker.secrets.existingSecret=speedtest-tracker-secrets

Data is persisted in /config volume. Suitable for:

  • Development and testing
  • Small single-instance deployments
  • Homelab environments

Option 2: Built-in Database (Managed as StatefulSet)

Deploy with MariaDB, MySQL, or PostgreSQL as a Kubernetes StatefulSet:

Using MariaDB

database:
  mariadb:
    enabled: true
    image:
      tag: "11"
    auth:
      database: speedtest_tracker
      username: speedtest_tracker
      existingSecret: speedtest-tracker-db
      passwordKey: db-password
    persistence:
      size: 10Gi
      storageClassName: fast-ssd
helm install speedtest-tracker harish2k01/speedtest-tracker -f values.yaml

Using MySQL

database:
  mysql:
    enabled: true
    image:
      tag: "8"
    auth:
      database: speedtest_tracker
      username: speedtest_tracker
      existingSecret: speedtest-tracker-db
      passwordKey: db-password
    persistence:
      size: 10Gi
      storageClassName: fast-ssd

Using PostgreSQL

database:
  postgresql:
    enabled: true
    image:
      tag: "18"
    auth:
      database: speedtest_tracker
      username: speedtest_tracker
      existingSecret: speedtest-tracker-db
      passwordKey: db-password
    persistence:
      size: 10Gi
      storageClassName: fast-ssd

Benefits:

  • Database managed alongside the application
  • Automatic database initialization
  • Built-in health checks
  • Persistent storage via StatefulSet

Considerations:

  • Requires sufficient storage
  • Single replica by default (no automatic replication)
  • For production, consider external database for better management

Option 3: External Database

Use an existing database managed outside the cluster:

database:
  external:
    enabled: true
    type: "mysql"  # mariadb, mysql, or pgsql
    host: "mysql.example.com"
    port: "3306"
    database: "speedtest_tracker"
    username: "speedtest_user"
    existingSecret: speedtest-tracker-db-external
    passwordKey: db-password

Create the secret beforehand:

kubectl create secret generic speedtest-tracker-db-external \
  --from-literal=db-password='your_password'

Benefits:

  • Database managed separately from application
  • Better for high-availability setups
  • Easier backup and recovery
  • Recommended for production

Use Cases:

  • Multi-application environments
  • Managed database services (RDS, Cloud SQL, etc.)
  • HA/DR requirements

Database Persistence

Built-in Database

Built-in databases use StatefulSet with VolumeClaimTemplates for persistent storage:

database:
  mariadb:
    enabled: true
    persistence:
      enabled: true
      size: 10Gi
      storageClassName: "fast-ssd"  # Use your storage class
      accessModes:
        - ReadWriteOnce

Application Configuration

Application configuration is persisted separately:

speedtestTracker:
  persistence:
    enabled: true
    size: 1Gi
    storageClassName: "standard"
    mountPath: /config

Database Environment Variables

When using built-in databases, the following variables are automatically configured:

VariableAuto-ConfiguredDescription
DB_CONNECTIONYesSet from the enabled database section
DB_HOSTYesSet to database service name
DB_PORTYesSet to database service port
DB_DATABASEYesSet from database config
DB_USERNAMEYesSet from database config
DB_PASSWORDYesInjected from Secret

When using external databases, enable database.external:

database:
  external:
    enabled: true
    type: "mysql"
    host: "mysql.example.com"
    port: "3306"
    database: "speedtest_tracker"
    username: "speedtest_user"
    existingSecret: speedtest-tracker-db-external
    passwordKey: db-password

Multi-Database Setup Example

Deploy with MySQL, persistent storage, and ingress:

database:
  mysql:
    enabled: true
    auth:
      database: speedtest_tracker
      username: speedtest_user
      existingSecret: speedtest-tracker-db
      passwordKey: db-password
    persistence:
      size: 20Gi
      storageClassName: ssd

speedtestTracker:
  persistence:
    enabled: true
    size: 5Gi
    storageClassName: standard

ingress:
  enabled: true
  className: nginx
  hosts:
    - host: speedtest.example.com
      paths:
        - path: /
          pathType: Prefix

speedtestTracker:
  secrets:
    existingSecret: speedtest-tracker-secrets
  env:
    DISPLAY_TIMEZONE: "UTC"
    SPEEDTEST_SCHEDULE: "0 */6 * * *"
kubectl create secret generic speedtest-tracker-secrets \
  --from-literal=APP_KEY='base64:YOUR_GENERATED_KEY'

helm repo add harish2k01 https://harish2k01.github.io/helm-charts
helm repo update
helm install speedtest-tracker harish2k01/speedtest-tracker \
  --set speedtestTracker.secrets.existingSecret=speedtest-tracker-secrets

Install With Ingress

ingress:
  enabled: true
  className: nginx
  hosts:
    - host: speedtest.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: speedtest-tracker-tls
      hosts:
        - speedtest.example.com
kubectl create secret generic speedtest-tracker-secrets \
  --from-literal=APP_KEY='base64:YOUR_GENERATED_KEY'

helm install speedtest-tracker harish2k01/speedtest-tracker \
  -f values.yaml \
  --set speedtestTracker.secrets.existingSecret=speedtest-tracker-secrets

Install With Gateway API HTTPRoute

httpRoutes:
  main:
    enabled: true
    parentRefs:
      - name: gateway
        namespace: gateway-system
        sectionName: https
    hostnames:
      - speedtest.example.com

Secret Management

Option 1: Using Existing Kubernetes Secret (Recommended for Production)

Create a secret outside of Helm:

kubectl create secret generic speedtest-tracker-secrets \
  --from-literal=APP_KEY='base64:YOUR_GENERATED_KEY' \
  --from-literal=ADMIN_PASSWORD='your_admin_password' \
  --from-literal=MAIL_USERNAME='smtp_user' \
  --from-literal=MAIL_PASSWORD='smtp_password'

Reference it in your values:

speedtestTracker:
  secrets:
    existingSecret: speedtest-tracker-secrets

Then install:

helm install speedtest-tracker harish2k01/speedtest-tracker -f values.yaml

Option 2: Helm-Managed Secrets (For Testing/Development)

Pass secrets directly to Helm:

helm install speedtest-tracker harish2k01/speedtest-tracker \
  --set speedtestTracker.secrets.inline.APP_KEY='base64:YOUR_GENERATED_KEY' \
  --set speedtestTracker.secrets.inline.ADMIN_PASSWORD='myadminpass'

Or use a values file:

speedtestTracker:
  secrets:
    existingSecret: ""
    inline:
      APP_KEY: "base64:YOUR_GENERATED_KEY"
      ADMIN_PASSWORD: "myadminpass"
      MAIL_USERNAME: "smtp_user"
      MAIL_PASSWORD: "smtp_password"

Environment Variables

Application Settings

VariableDefaultDescriptionRequired
APP_NAMESpeedtest TrackerApplication display nameNo
TZEtc/UTCContainer timezone used by the LinuxServer imageYes
APP_ENVproductionEnvironment mode: production, development, testingNo
APP_DEBUGfalseEnable debug mode for detailed error loggingNo
APP_URLhttp://localhostPublic URL for the application; set this to your ingress/HTTPRoute URL for productionYes
APP_LOCALEenApplication locale/language codeNo
APP_FALLBACK_LOCALEenFallback locale if primary is unavailableNo

Display & UI Settings

VariableDefaultDescription
DISPLAY_TIMEZONEAsia/KolkataTimezone for displaying results (e.g., UTC, America/New_York)
DATETIME_FORMATM. j, Y g:iaFormat string for datetime display
CHART_DATETIME_FORMATM. j - G:iFormat string for chart labels
CHART_BEGIN_AT_ZEROtrueStart charts at zero value
CONTENT_WIDTH7xlUI container width (sm, md, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl, 7xl)
DEFAULT_CHART_RANGE24hDefault time range for charts (24h, 7d, 30d, etc)

Database Configuration

VariableDefaultDescriptionNotes
DB_CONNECTIONsqliteDatabase driver: sqlite, mariadb, mysql, pgsqlAuto-managed from the enabled database section unless you use manual DB env vars
DB_HOST-Database hostnameRequired for MySQL/PostgreSQL
DB_PORT-Database port (3306 for MySQL, 5432 for PostgreSQL)Required for MySQL/PostgreSQL
DB_DATABASE-Database nameRequired for MySQL/PostgreSQL
DB_USERNAME-Database usernameRequired for MySQL/PostgreSQL
DB_PASSWORD-Database passwordSecret - Use secrets for sensitive data
DB_URL-Full database URL (alternative to separate DB_* vars)e.g., mysql://user:pass@host:3306/dbname
DB_SOCKET-Unix socket path for local connectionsOptional

Speedtest Scheduling & Configuration

VariableDefaultDescriptionExamples
SPEEDTEST_SCHEDULE0 */3 * * *Cron expression for automated speedtest runs0 0 * * * = daily, 0 */6 * * * = every 6 hours
SPEEDTEST_SERVERS-Comma-separated Ookla server IDs to use (leave empty for auto-selection)1234,5678,9012
SPEEDTEST_BLOCKED_SERVERS-Comma-separated Ookla server IDs to exclude1234,5678
SPEEDTEST_INTERFACE-Network interface to use for speedtestse.g., eth0, wlan0
SPEEDTEST_EXTERNAL_IP_URLhttps://icanhazip.comURL to check external IP for connectivity verificationAlternative: https://api.ipify.org
SPEEDTEST_SKIP_IPS-Comma-separated IPs to skip during speedtest192.168.1.1,10.0.0.1

Dashboard & Public Access

VariableDefaultDescription
PUBLIC_DASHBOARDfalseAllow unauthenticated access to dashboard (true/false)

Data Retention

VariableDefaultDescriptionNotes
PRUNE_RESULTS_OLDER_THAN90Days to retain speedtest results (0 = keep all results)Results older than this are automatically deleted

Threshold Monitoring (Optional)

Enable notifications when speeds fall below thresholds:

VariableDefaultDescription
THRESHOLD_ENABLEDfalseEnable threshold-based alerts
THRESHOLD_DOWNLOAD0Minimum download speed in Mbps (0 = disabled)
THRESHOLD_UPLOAD0Minimum upload speed in Mbps (0 = disabled)
THRESHOLD_PING0Maximum ping latency in ms (0 = disabled)

Admin User (Initial Setup Only)

These are used only on first installation to create the initial admin account:

VariableDefaultDescription
ADMIN_NAMEAdminAdmin user display name
ADMIN_EMAIL[email protected]Admin user email address
ADMIN_PASSWORD-Admin user password

API Configuration

VariableDefaultDescription
API_RATE_LIMIT60API request rate limit (requests per minute)

IP Filtering (Optional)

VariableDefaultDescription
ALLOWED_IPS-Comma-separated list of allowed IP addresses/CIDR ranges

Mail/Notification Configuration (Optional)

VariableDefaultDescriptionSensitive
MAIL_MAILERlogMail driver: log, smtp, mailgun, sendmail, etcNo
MAIL_HOST-SMTP server hostnameNo
MAIL_PORT587SMTP server portNo
MAIL_SCHEME-Optional mail scheme: smtp or smtpsNo
MAIL_FROM_ADDRESS[email protected]From address for outgoing emailsNo
MAIL_FROM_NAMESpeedtest TrackerFrom name for outgoing emailsNo
MAIL_USERNAME-SMTP usernameYes - use secrets
MAIL_PASSWORD-SMTP passwordYes - use secrets

Advanced Configuration

Using an External MySQL/PostgreSQL Database

database:
  external:
    enabled: true
    type: "mysql"
    host: "mysql.default.svc.cluster.local"
    port: "3306"
    database: "speedtest_tracker"
    username: "speedtest"
    existingSecret: speedtest-tracke

Deploy speedtest-tracker with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has speedtest-tracker on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartspeedtest-tracker is pinned at v0.3.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply