Skip to content

georgevpopa/devops-tools

Repository files navigation

DevOps Tools

A collection of DevOps utilities including a website monitoring service, containerized with Docker and deployable on Kubernetes (K3s).


Features

  • 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

Components

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

Quick Start

Run locally

pip install flask requests
python website_monitor.py

Then open http://localhost:5000 to see the monitoring dashboard.

Run with Docker

docker build -t website-monitor .
docker run -p 5000:5000 website-monitor

Deploy on Kubernetes

kubectl apply -f deployment.yaml
kubectl apply -f service.yaml

Configuration

Edit 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"
]

Architecture

User → Browser → Flask App (website_monitor.py)
                     ↓
              Checks each target URL
                     ↓
              Returns status dashboard
              (UP/DOWN + response time)

Tech Stack

  • Backend: Python, Flask
  • HTTP Client: Requests
  • Container: Docker
  • Orchestration: Kubernetes / K3s

License

MIT License


Star History

Star History Chart

About

DevOps utilities: website monitoring, Docker containerization, and Kubernetes (K3s) deployment.

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors