https://github.com/dsdatsme/k8s-hit-counter
Count hits of your flask web app using redis.
https://github.com/dsdatsme/k8s-hit-counter
flask kubernetes python redis
Last synced: 2 months ago
JSON representation
Count hits of your flask web app using redis.
- Host: GitHub
- URL: https://github.com/dsdatsme/k8s-hit-counter
- Owner: DSdatsme
- Created: 2020-04-05T07:12:42.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-05T08:53:03.000Z (about 5 years ago)
- Last Synced: 2025-02-12T12:55:20.463Z (4 months ago)
- Topics: flask, kubernetes, python, redis
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hit Counter App
## Components
There are two components Flask application and Redis as datastore.
## Functionality
The working of architecture is very simple, when you hit the url of frontend the flask app will show the number of times the page was visited. The count of visits is stored in Redis. So when you visit the page, the Flask web app will update the entry in the Redis.
## Kubernetes Components
- Redis Deployment
- Redis Service
- App Deployment
- App Service## To Run Setup Locally
This will download Docker images from dockerhub
```bash
bash start.sh
```## CI/CD
- `.travis.yml` for Continious Integraton.
- `Jenkinsfile` for Continious Delivery.