Created
June 10, 2020 02:55
-
-
Save iameli/2bd5fd735ddf3d0373dbcde17a6f4640 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM python:3 | |
| RUN pip3 install speedtest-cli | |
| ADD run.sh /run.sh | |
| CMD /run.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| speedtest-cli | |
| echo "--- test complete, sleeping forever ---" | |
| tail -f /dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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