Merge pull request #31 from aggarwalakshun/speedtest
feat: add Speedtest deployment, service, and persistent volume claim
This commit is contained in:
13
cluster/apps/speedtest/speedtest-pvc.yml
Normal file
13
cluster/apps/speedtest/speedtest-pvc.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: longhorn-speedtest
|
||||
namespace: default
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 500Mi
|
||||
16
cluster/apps/speedtest/speedtest-svc.yml
Normal file
16
cluster/apps/speedtest/speedtest-svc.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: speedtest-service
|
||||
namespace: default
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
app: speedtest
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
nodePort: 8181
|
||||
protocol: TCP
|
||||
|
||||
51
cluster/apps/speedtest/speedtest.yml
Normal file
51
cluster/apps/speedtest/speedtest.yml
Normal file
@@ -0,0 +1,51 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: speedtest
|
||||
namespace: default
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: speedtest
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: speedtest
|
||||
spec:
|
||||
containers:
|
||||
- name: speedtest
|
||||
image: lscr.io/linuxserver/speedtest-tracker:1.4.0
|
||||
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: longhorn-speedtest
|
||||
|
||||
Reference in New Issue
Block a user