Skip to content

hieuung/Simple-web-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple-web-app

My simple web app, deploy using containerization for Dev-ops learning

Tech stack

  • Flask
  • WGIS
  • Containerization (Docker, Kubernetes, Minikube)
  • SQL (Postgres)

Description

This simple webapp provided user's interface for sign up and sign in. Using Flask (python). Containerized app with docker and deploy on Kubernetes.

Deployment

kubectl create namespace webapp
  • Deploy Postgres server to Kubernetes
kubectl apply -f ./k8s/database-postgres -n webapp

NOTE: Postgres server ClusterIP have to be hard coded.

  • Create database following file ./db/schema.sql using provided user name and password created in k8s secret.

  • (Optional) Created docker image and push to registry. Add SQL_URI (AlchemySQL connection URI) to docker enviroment variable.

  • Create deployment for webapp. using created docker image (Currently my docker image)

kubectl apply -f ./k8s/web-app -n webapp

Result

  • Verify deployment, service
kubectl get depolyment -n webapp

Deployment

kubectl get service -n webapp

Service

NOTE: Using minkibe tunnel if LoadBalancer not exposes External-IP

About

My simple web application. Deployment using containerization for DevOps learning purpose

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published