Add Speedtest deployment, service, PVC, and sealed secret configurations
This commit is contained in:
52
clusters/default/monitoring/speedtest/speedtest.yml
Normal file
52
clusters/default/monitoring/speedtest/speedtest.yml
Normal 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
|
||||
Reference in New Issue
Block a user