Code Monkey home page Code Monkey logo

ccp2-cmgt-lab-customers-stores's Introduction

REST based micro-services sample - using Kubernetes

You have already seen this application in the PaaS lecture. In this Lab we weill deploy it on a Kubernetes cluster using kubectl

Running Instructions

  • Before deploying the appliction containers you will need to deploy the databases
  • First make sure you are using your group namespace to deploy: $ kubectl config set-context aws_kubernetes --namespace=group1
  • Then deploy the MongoDB service and pod: $ kubectl create -f mongo_svc.yml $ kubectl create -f mysql_pod.yml

Lab Instructions

Please follow the detailed lab instructons on OLAT.

Here are just some quick information pointers:

  • Docker images:

    • User Interface: icclabcna/customers-stores-ui:latest
    • Store REST Microservice: icclabcna/rest-microservices-store:latest
    • Customers REST Microservice: icclabcna/rest-microservices-customers:latest
  • User Interface Docker container:

    • Runs on port: 9900
    • ENVIRONMENT VARIABLES:
      • zuul_routes_customers_url: URL to which Zuul forwards Customers services requests e.g., http://localhost:9000
      • zuul_routes_stores_url: URL to which Zuul forwards Stores services requests e.g., http://localhost:8081
  • Stores REST Microservice Docker container:

    • Runs on port: 8081
    • ENVIRONMENT VARIABLES:
      • SPRING_DATA_MONGODB_URI: JDBC Endpoint URI for MongoDB e.g., mongodb://localhost:27017/stores
  • Customers REST Microservice Docker container:

    • Runs on port: 9000
    • ENVIRONMENT VARIABLES:
      • spring_datasource_username: e.g., root
      • spring_datasource_password: e.g., yourpassword
      • spring_datasource_url: JDBC Endpoint URI for MySQL DB e.g., jdbc:mysql://localhost:3306/customers
      • integration_stores_uri: URI the Customers service uses to connect to the Stores service e.g., http://localhost:8081

ccp2-cmgt-lab-customers-stores's People

Contributors

gtoff 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.