Skip to content

Docker & Kubernetes practice. App to calculate the value of a Fibonacci value given an index. Example: For the index 6 the value is 13.

Notifications You must be signed in to change notification settings

RazGvili/fib_docker_kubernetes

Repository files navigation

*Part of a Docker course - "docker-and-kubernetes-the-complete-guide" by the great Stephen Grider

Purpose

Practice Docker & Kubernetes. This app calculates the value of a Fibonacci value given an index. Example: For the index 6 the value is 13.

CI

The master branch is integrated into TravisCI, a successful deploy must pass the react app tests. After success, a script will build and push to docker hub + set a new image to a k8s cluster deployed on GKE.

App architecture

Components

External load balancer

Nginx-Ingress

Client k8s Deployment exposed via ClusterIp service

returns create-react-app static files

Express server k8s Deployment exposed via ClusterIp service

API for Fibonacci calculations. Will save indices the app seen in a Postgress DB. The calculated values will first be saved as "ready", then will be passed to the worker container.

Worker k8s Deployment

Listens to the saved Redis values (Pub/Sub), then calculates the Fibonacci value.

Redis Deployment exposed via ClusterIp service

Postgres Deployment exposed via ClusterIp service with PVC

About

Docker & Kubernetes practice. App to calculate the value of a Fibonacci value given an index. Example: For the index 6 the value is 13.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published