Sign inSign up

lalx/speedtest-cli-arm

By lalx

Updated about 6 years ago

Image
0

3.2K

lalx/speedtest-cli-arm repository overview

BEFORE RUN

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.

HOW TO RUN

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

Credits:

https://simonhearne.com/2020/pi-speedtest-influx/

Tag summary

Content type

Image

Digest

Size

185.2 MB

Last updated

about 6 years ago

docker pull lalx/speedtest-cli-arm