Giter VIP home page Giter VIP logo

i-pharmacy's Introduction

I-pharmacy Infrastructure

syllabus

  • Discribtion
  • Kubernetes architecture
  • How to deploy
  • How to upgrade

Infrastructure is deployed in kubbernetes consist from 3 server

  1. kubernetes
  2. reverse proxy
  3. nfs

kubernetes architecture

k8s

vm name private ip public ip
master 10.114.0.3 207.154.226.237
worker01 10.114.0.4 207.154.238.25
reverse proxy + nfs 10.114.0.5 138.68.74.211
pod network cidr 10.244.0.0/16

name spaces :

  admin-app   : containin admin application (pod) 
  backend-api : contain backend api application (pod)  
  database    : contain sql server database version 17
  kube-system : contain k8s pod itself
  nfs-storage : for nfs provision storage
  traefik     : for ingress controller
  portal      : contain portal appplication

nodes:

  • Master : manage kuberneets cluster and contain system component

  • Worker01 : for deploying applications (pod) on it

  • Reverse proxy + nfs : contain haproyx as reverse proxy to forward traffic from outside into k8s cluster it's configuration resides in /etc/haproxy/haproxy.cfg if you wat to add mode nodes you can do it through backend sections

  • Nfs Storage : on the same reverse proxy server the data located in /srv/kubernetes/ you can display exposed folder by running command : exportfs -v or showmount -e

ingress:

  • traefik : to redirect traffic from reverse cluster to the application in a pod each application deployed in k8s cluster have ingress rule and also (admin + portal + api ) have ingress rule ingress rule is namespaced for example if you want to get ingress rule for admin by running this command : kubectl get ingress

How to deploy application in k8s

the applications are deployed by Helm Charts so you can edit values.yaml to change the tag of the image to new one

  • to install application in k8s and run this command: helm install (Release name) -n (name space)
  • to upgrade application by helm helm upgrade (Release name) -n (name space)
  • to remove application by helm helm uninstall (Release name) -n (name space)

i-pharmacy's People

Contributors

sherifkhedr avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.