fix(speedtest-tracker) change upstream image (#4225)

* fix(speedtest-tracker) change upstream image

* docs + ranr

* initial work for pgsql

* remove secrets

* set mirror image

* revert back to ghcr

* rar

* prettier

* repo

Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
Xstar97
2022-10-29 14:36:39 +03:00
committed by GitHub
co-authored by Stavros Kois
parent 4e6878fc3b
commit 7f7f9313f8
4 changed files with 32 additions and 78 deletions
@@ -4,7 +4,11 @@ dependencies:
- name: common - name: common
repository: https://library-charts.truecharts.org repository: https://library-charts.truecharts.org
version: 10.7.7 version: 10.7.7
description: This app runs a speedtest check every hour and graphs the results. - condition: postgresql.enabled
name: postgresql
repository: https://charts.truecharts.org/
version: 8.0.48
description: A self-hosted internet performance tracking application that runs speedtest checks against Ookla's Speedtest service.
home: https://truecharts.org/docs/charts/incubator/speedtest-tracker home: https://truecharts.org/docs/charts/incubator/speedtest-tracker
icon: https://truecharts.org/img/hotlink-ok/chart-icons/speedtest-tracker.png icon: https://truecharts.org/img/hotlink-ok/chart-icons/speedtest-tracker.png
keywords: keywords:
@@ -17,8 +21,8 @@ maintainers:
name: speedtest-tracker name: speedtest-tracker
sources: sources:
- https://github.com/truecharts/charts/tree/master/charts/incubator/speedtest-tracker - https://github.com/truecharts/charts/tree/master/charts/incubator/speedtest-tracker
- https://github.com/henrywhitaker3/Speedtest-Tracker - https://github.com/alexjustesen/speedtest-tracker
version: 0.0.6 version: 0.1.0
annotations: annotations:
truecharts.org/catagories: | truecharts.org/catagories: |
- speedtest - speedtest
@@ -1,6 +1,4 @@
# Default Credentials # Default Credentials
If you set `Enable Auth` to true, default credentials are: - Username: `admin@example.com`
- Username: `admin@admin.com`
- Password: `password` - Password: `password`
@@ -12,63 +12,6 @@ questions:
# Include{recreate} # Include{recreate}
# Include{controllerExpert} # Include{controllerExpert}
# Include{controllerExpertExtraArgs} # Include{controllerExpertExtraArgs}
- variable: secretEnv
group: Container Configuration
label: Image Secrets
schema:
additional_attrs: true
type: dict
attrs:
- variable: TELEGRAM_BOT_TOKEN
label: Telegram Bot Token
schema:
type: string
private: true
default: ""
- variable: TELEGRAM_CHAT_ID
label: Telegram Chat ID
schema:
type: string
private: true
default: ""
- variable: SLACK_WEBHOOK
label: Slack Webhook
description: Put a slack webhook here to get slack notifications when a speedtest is run. To use discord webhooks, just append /slack to the end of your discord webhook URL
schema:
type: string
private: true
default: ""
- variable: env
group: Container Configuration
label: Image Environment
schema:
additional_attrs: true
type: dict
attrs:
- variable: OOKLA_EULA_GDPR
label: Accept OOKLA EULA and GDPR
description: Set to 'true' to accept the Ookla EULA and privacy agreement. If this is not set, the container will not start
schema:
type: boolean
default: false
- variable: AUTH
label: Enable Auth
description: When enabled, unauthenticated users will only be able to see the graphs and tests table.
schema:
type: boolean
default: false
- variable: INFLUXDB_RETENTION
label: InfluxDB Retention
description: Sets the InfluxDB retention period
schema:
type: string
default: 30d
- variable: INFLUXDB_HOST_TAG
label: InfluxDB Host Tag
description: Sets the InfluxDB host tag value
schema:
type: string
default: speedtest
# Include{containerConfig} # Include{containerConfig}
# Include{serviceRoot} # Include{serviceRoot}
- variable: main - variable: main
@@ -93,13 +36,13 @@ questions:
type: int type: int
default: 8765 default: 8765
required: true required: true
# Include{advancedPortHTTP} # Include{advancedPortHTTPS}
- variable: targetPort - variable: targetPort
label: Target Port label: Target Port
description: The internal(!) port on the container the Application runs on description: The internal(!) port on the container the Application runs on
schema: schema:
type: int type: int
default: 80 default: 443
# Include{serviceExpertRoot} # Include{serviceExpertRoot}
default: false default: false
# Include{serviceExpert} # Include{serviceExpert}
+22 -13
View File
@@ -1,6 +1,6 @@
image: image:
repository: tccr.io/truecharts/speedtest-tracker repository: tccr.io/truecharts/speedtest-tracker
tag: latest@sha256:415ff67401643e0ac53146e3025f8970e629c34f872fdc433491d61198292f8d tag: latest@sha256:20a1812252cbda90d9b7a06d32247c28477f2d73fd8295323a8117242dbc3a1a
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
securityContext: securityContext:
@@ -11,29 +11,38 @@ podSecurityContext:
runAsUser: 0 runAsUser: 0
runAsGroup: 0 runAsGroup: 0
secretEnv:
TELEGRAM_BOT_TOKEN: ""
TELEGRAM_CHAT_ID: ""
SLACK_WEBHOOK: ""
env: env:
OOKLA_EULA_GDPR: true DB_CONNECTION: pgsql
AUTH: false DB_PORT: 5432
INFLUXDB_RETENTION: 30d DB_DATABASE: "{{ .Values.postgresql.postgresqlDatabase }}"
INFLUXDB_HOST_TAG: speedtest DB_USERNAME: "{{ .Values.postgresql.postgresqlUsername }}"
DB_HOST:
secretKeyRef:
name: dbcreds
key: plainhost
DB_PASSWORD:
secretKeyRef:
name: dbcreds
key: postgresql-password
service: service:
main: main:
ports: ports:
main: main:
port: 8765 port: 8765
protocol: HTTP protocol: HTTPS
targetPort: 80 targetPort: 443
persistence: persistence:
config: config:
enabled: true enabled: true
mountPath: "/config" mountPath: /config
postgresql:
enabled: true
existingSecret: dbcreds
postgresqlDatabase: speedtest_tracker
postgresqlUsername: speedtest_tracker
portal: portal:
enabled: true enabled: true