type: index
tags:
- devops
- kubernetes
- kubernetes ingress
- ingress
-
application
timestamp: ā2025-09-01T12:47:50Zā
ā<div align="center" style="background: linear-gradient(270deg, #00c6ff, #9c27b0, #ff0080);
background-size: 600% 600%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: gradientMove 8s ease infinite;">
š ShortURL Application š
</div>
Overview
Python Url Shortner is a web application that provides URL shortening functionality along with user interface, authentication, reporting, and URL shortening services.
Services
UI Service
- Description: This service provides the user interface for the URL shortener application.
- Path:
/
- Kubernetes Service Name:
flask-uiapp
- Port: 5000
AUTH Service
- Description: This service handles user authentication and interacts with the database for user information.
- Paths:
/api/v1/auth/register
/api/v1/auth/login
- Kubernetes Service Name:
flask-authapp
- Port: 5000
REPORT Service
- Description: This service generates reports showing URLs visited by users.
- Path:
/report
- Kubernetes Service Name:
flask-reportapp
- Port: 5000
URL-SHORT Service
- Description: This service shortens long URLs and redirects users to the original URL.
- Paths:
/api/url
/r/<short_url> ā> ā" this is a short url which can be used to visit the long url
/allurls
- Kubernetes Service Name:
flask-shorturlapp
- Port: 5000
Usage
To access the various services, use the appropriate paths mentioned above in combination with the base URL of your Kubernetes cluster.
For example:
- To access the UI Service:
http://<cluster-ip>/
- To register a new user:
http://<cluster-ip>/api/v1/auth/register
- To shorten a URL:
http://<cluster-ip>/api/url
Installation
- Clone the repository.
- Deploy the services to your Kubernetes cluster using the provided Kubernetes configuration files.
Dependencies
- Python 3.x
- Flask
- Kubernetes
Contributing
Contributions are welcome! Please fork the repository, make your changes, and submit a pull request.