apiVersion: v1
kind: Pod
metadata:
  labels:
    run: speedtest
  name: speedtest
spec:
  containers:
  - image: ryusa/speedtest:v2.1.3
    name: speedtest
    args:
    - --json
    volumeMounts:
    - name: log
      mountPath: /var/log/
  - name: sidecar
    image: ryusa/speedtest-pusher:v2.1.3
    volumeMounts:
    - name: log
      mountPath: /var/log/
    env:
    - name: TARGET_FILE_PATH
      value: "/var/log/speedtest.json"
    - name: MAX_TIMEOUT
      value: "60"
    - name: JOB_NAME
      value: "sample"
    - name: PUSHGATEWAY_HOST
      value: "push-prometheus-pushgateway:9091"
  restartPolicy: Never
  volumes:
  - name: log
    emptyDir: {}
