Skip to content

sumo2001/fibonacci-kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fibonacci-kubernetes

Architecture

image

What is happening here?

  • You know, fibonacci number?, we will be calucating the fibonnaci number on the index given
  • image
  • We will be using an ingress image to capture input from the end user and later on, will serve them to our express server and react clients
  • image
  • So the postgres will store all the indexes the user or server has seen before
  • The redis will take the index and stores it in her database
  • The worker node will contact redis and calcuates the value for the index stored in redis and updates the value in redis db
  • The calcualated and the seen indexes are shown in our frontend
  • The PVC [persistent volume claim] is something that provides persistant data to the postgres deployments (one word: disaster recovery)
  • image

Install

  • git clone https://github.com/sumo2001/fibonacci-kubernetes.git
  • cd fibonacci-kubernetes/
  • minikube start
  • kubectl get pods
  • kubectl create secret generic pgpassword --from-literal PGPASSWORD=12345asdf
  • kubectl apply -f k8s
  • minikube ip
  • open your browser and type in your minikube displayed ip

  • Step 1
  • image
  • Step 2
  • image
  • Step 3
  • image
  • Step 4
  • image
  • Give input, click submit, wait few seconds and click on refresh

Debugging

  • There are chances that one of our deployments may break or throw an error

About

Docker to kubernetes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published