Skip to content

Instantly share code, notes, and snippets.

@iameli
Created June 10, 2020 02:55
Show Gist options
  • Select an option

  • Save iameli/2bd5fd735ddf3d0373dbcde17a6f4640 to your computer and use it in GitHub Desktop.

Select an option

Save iameli/2bd5fd735ddf3d0373dbcde17a6f4640 to your computer and use it in GitHub Desktop.
FROM python:3
RUN pip3 install speedtest-cli
ADD run.sh /run.sh
CMD /run.sh
#!/bin/bash
set -e
speedtest-cli
echo "--- test complete, sleeping forever ---"
tail -f /dev/null
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: simple-speedtest
labels:
k8s-app: simple-speedtest
spec:
selector:
matchLabels:
name: simple-speedtest
template:
metadata:
labels:
name: simple-speedtest
spec:
containers:
- name: simple-speedtest
image: iameli/simple-speedtest
imagePullPolicy: Always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment