You need torun influxDB in localhost.
Please refer to https://hub.docker.com/repository/docker/lalx/speedtest-cli for more details how to run a stack of influxDB with Grafana in localohst,
To run successfully you need to define also the following two variables
HOST_HOSTNAME
TABLE
The results will be published in the DB called speedtest and the measurement name will be $HOST_HOSTNAME-$TABLE.
Example below how to run a cronjob in k3s.
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: speedtest-job
spec:
schedule: "1 * * * *"
jobTemplate:
spec:
template:
spec:
hostNetwork: true
containers:
- name: speedtest
image: lalx/speedtest-cli-arm:latest
env:
- name: HOST_HOSTNAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: TABLE
value: "HOURLY"
restartPolicy: OnFailure
Content type
Image
Digest
Size
185.2 MB
Last updated
about 6 years ago
docker pull lalx/speedtest-cli-arm