Skip to content

apsgangwar/chating_app

 
 

Repository files navigation

Chating-App

This is a example of 3 microservices and a database working in a Kubernetes cluster.

  • chat_front: Simple webpage that sends and receives messages from chat_svc through socket io
  • chat_svc: Receives messages from chat_front and sends these messages to chat_db to store this information
  • chat_db: Receives data from chat_svc and stores this information in a SQLite DB.

Architecture

Steps

  1. Create the docker images:
docker build -t chat_db:v1 ./chat_db/
docker build -t chat_svc:v1 ./chat_svc/
docker build -t chat_front:v1 ./chat_front/
  1. Update the clusterIP in helm chart values.yaml
clusterIP: 13.233.122.155
  1. Check your helm chart:
helm upgrade --dry-run --install chating-app ./helm_chart/
  1. Install the helm chart:
helm upgrade --install chating-app ./helm_chart/

  1. Verify that all pods are OK:
kubectl get pods

  1. Open the link as mentioned and see the magic :) http://namespace.chat_front_serviceName.clusterIP.clusterDomain


This project of chating-app is inspired from this PyMS example.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 41.8%
  • JavaScript 21.4%
  • HTML 19.8%
  • Dockerfile 7.1%
  • CSS 4.4%
  • Mustache 4.0%
  • Makefile 1.5%