A cronjob service that consumes speedtest-service package
Ensure that speedtest is installed. Available here.
brew tap teamookla/speedtest
brew update
brew install speedtest
sudo apt-get install curl
curl -s https://install.speedtest.net/app/cli/install.deb.sh | sudo bash
sudo apt-get install speedtest
curl -s https://install.speedtest.net/app/cli/install.rpm.sh | sudo bash
sudo yum install speedtest
EXPORT MONGODB_URI=mongodb://localhost:27017/speedtest
yarn install
node index.js
{
date: '2022-01-01',
server: {
org: 'YouFibre',
location: 'Manchester',
id: '48475'
},
isp: 'Hyperoptic Ltd',
latency: '2.05 ms',
download: '195.15 Mbps',
upload: '368.53 Mbps',
packetLoss: 'Not available.',
resultUrl: 'https://www.speedtest.net/result/c/2b753g91-24h5-67aa-111g-7g999a9a99aa'
}
docker build -t registry/image_name:tag .
docker push registry/image_name:tag
Edit the files found here and then you can apply them using
kubectl create -f ./_devops/kubernetes