A collection of DevOps utilities including a website monitoring service, containerized with Docker and deployable on Kubernetes (K3s).
- Website Monitor: Flask-based service that checks uptime and response times for configured URLs
- Dockerized: Ready-to-build Docker image
- Kubernetes-ready: Deployment and Service YAML manifests included
- K3s installer: Script for lightweight Kubernetes setup
- GitHub Actions: Automated CI/CD compatible
| File | Purpose |
|---|---|
website_monitor.py |
Flask app that monitors website availability |
Dockerfile |
Container image definition |
deployment.yaml |
Kubernetes Deployment manifest |
service.yaml |
Kubernetes Service manifest |
k3s_script_install.sh |
K3s installation script |
get-docker.sh |
Docker installation helper |
pip install flask requests
python website_monitor.pyThen open http://localhost:5000 to see the monitoring dashboard.
docker build -t website-monitor .
docker run -p 5000:5000 website-monitorkubectl apply -f deployment.yaml
kubectl apply -f service.yamlEdit the targets list in website_monitor.py to monitor your own URLs:
targets = [
"https://www.google.com",
"https://your-website.com",
"https://another-site.com"
]User → Browser → Flask App (website_monitor.py)
↓
Checks each target URL
↓
Returns status dashboard
(UP/DOWN + response time)
- Backend: Python, Flask
- HTTP Client: Requests
- Container: Docker
- Orchestration: Kubernetes / K3s
MIT License