Skip to content

mosakrm0/WebAppDeployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Image CI

You Can Just Run Script.sh and will do everything for you

  1. Install minikube using this script: curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb sudo dpkg -i minikube_latest_amd64.deb

  2. Start minikube with podman or docker as driver: minikube start --driver=docker OR minikube start --driver=podman

  3. Install kubectl: sudo apt install kubectl

  4. Create a Deployment using the image you just pushed and with 3 replicas kubectl create deployment simpleapp --image=ghcr.io/mosakrm0/simpleapp --replicas=3

  5. Check what you have done kubectl get all

  6. Create a service kubectl expose deployment simpleapp --port=80 --target-port=5000 --type=LoadBalancer

  7. Tunnel it using minikube minikube service simpleapp

About

(Docker, Kubernetes, GitHub Actions) Containerized a Python Flask app with Docker to create a consistent work environment, deployed the app on a local Kubernetes cluster (Minikube) and built a CI/ CD pipeline with GitHub Actions to automate testing and image builds.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors