Skip to content

narendra-narendra/Devops_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DevOps & Cloud - Flask Blog Application

Project Overview

This project demonstrates a complete DevOps workflow using Docker and Kubernetes. It consists of a Flask-based backend blog application and a static frontend application, both containerized and deployed using Kubernetes on Minikube.


Project Architecture

  • Backend: Flask blog application (CRUD operations)
  • Frontend: Static webpage served using NGINX
  • Database: SQLite (used by Flask backend)
  • Containerization: Docker
  • Orchestration: Kubernetes (Minikube)
  • Version Control: Git & GitHub

Backend – Flask Application

The Flask backend allows users to:

  • Create new blog posts
  • View all posts
  • Edit existing posts
  • Delete posts
  • View posts stored in a SQLite database

The backend runs on port 5000 and binds to 0.0.0.0 for container access.


Frontend Application

The frontend is a static web application served using NGINX. It displays a simple homepage and is exposed via a Kubernetes service.


Docker

  • Backend and frontend are Dockerized using separate Dockerfiles
  • Images are built and pushed to Docker Hub

Kubernetes Deployment

  • Backend deployed using a Kubernetes Deployment (replicas)
  • Frontend deployed using a Kubernetes Deployment
  • Both services are exposed using NodePort services
  • Minikube is used as the local Kubernetes cluster

How to Run the Project

Start Minikube

minikube start

 **Deploy Backend**
kubectl apply -f backend-deployment.yaml
kubectl apply -f backend-service.yaml

 **Deploy Frontend**
kubectl apply -f frontend-deployment.yaml
kubectl apply -f frontend-service.yaml

**Access Applications**
minikube service backend
minikube service frontend

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors