Giter Site home page Giter Site logo

arun-gupta / container-service-discovery Goto Github PK

View Code? Open in Web Editor NEW
45.0 7.0 22.0 16.54 MB

Service Discovery in Container Orchestration Frameworks on AWS

License: Apache License 2.0

JavaScript 100.00%
aws containers microservices ecs docker kubernetes dcos nodejs

container-service-discovery's Introduction

Service Discovery in Containers on AWS

This repo has a simple example that shows service discovery for different container orchestration frameworks.

The sample application uses three services:

services
  1. webapp: Web application microservice uses greeter and name microservice to generate a greeting for a person.

  2. greeter: A microservice returns a greeting based upon greet name/value keypair in the URL.

  3. name: A microservice that returns person’s name based upon id name/value keypair in the URL.

These services are built as Docker image and deployed in Docker, Amazon ECS, Kubernetes and DC/OS.

All services are built as Node.js application. webapp service need to be configured using the following parameters:

  1. NAME_SERVICE_HOST

  2. NAME_SERVICE_PORT

  3. NAME_SERVICE_PATH

  4. GREETER_SERVICE_HOST

  5. GREETER_SERVICE_PORT

  6. GREETER_SERVICE_PATH

Build services

Build Docker images for different services:

docker-compose build

Setup cluster and deploy application

Access application

Access the following URLs using curl or in browser:

http://<host>:<port>
http://<host>:<port>0?greet=ho
http://<host>:<port>?id=1
http://<host>:<port>?greet=ho&id=1
Framework <host> <port>

Docker

Master node public IP

80

ECS

External ALB Address

80

Kubernetes

Load Balancer Ingress

80

DC/OS

Public Slave Address

80

container-service-discovery's People

Contributors

arun-gupta avatar christopherhein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

container-service-discovery's Issues

Running on my own kubenetes cluster.

Hi Arun,

just wondering if you had time to expand this to running on your own K8s cluster. I'm not using any cloud, I have k8s installed on several VM's on my network and am really struggling to work out how this all hangs together when your not using things like AWS load balancers etc.

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.