Add Speedtest deployment, service, PVC, and sealed secret configurations

This commit is contained in:
2025-10-15 13:14:05 +05:30
parent e3ca8b67aa
commit aed85ba2af
4 changed files with 95 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: speedtest
namespace: monitoring
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
app: speedtest
template:
metadata:
labels:
app: speedtest
spec:
containers:
- name: speedtest
image: lscr.io/linuxserver/speedtest-tracker:1.6.8
ports:
- containerPort: 80
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: "Asia/Kolkata"
- name: DB_CONNECTION
value: "sqlite"
- name: APP_KEY
valueFrom:
secretKeyRef:
name: speedtest-secret
key: app_key
- name: SPEEDTEST_SCHEDULE
value: "@hourly"
- name: PRUNE_RESULTS_OLDER_THAN
value: "7"
- name: DISPLAY_TIMEZONE
value: "Asia/Kolkata"
- name: APP_TIMEZONE
value: "Asia/Kolkata"
volumeMounts:
- name: config
mountPath: /config
volumes:
- name: config
persistentVolumeClaim:
claimName: speedtest-longhorn