Coder Social home page Coder Social logo

ep-ping's Introduction

node.js ms on kubertnetes

โณ Requirements

Optional - yet recommanded:

๐Ÿฅ… Todays Goal's

Deploy a microservice architecture app

  • redis
  • api (./src/api)
  • consumer (./src/pinger)
  • client (./src/poller)

Background on ping app

  1. Use redis to store pings, using redis:latest@sha256:a89cb097693dd354de598d279c304a1c73ee550fbfff6d9ee515568e0c749cfe to ensure these LAB's function as expected altough latest should work ;)
  2. To disable redis authentication Use nodejs-ping with tag no-auth or latest@sha256:85d7474aabdd2d01802a9957c770ec157a478db71b7ce5f8d07d1e221cc39cba see the docker-compose-no-auth.yml
  3. Pinger & Poller are just 2 clients using latest tag should suffice.

In order to test you have everything docker-compose build will buid all images locally, A functional a docker-compose up should build/pull the required images.


1๏ธโƒฃ prep

๐Ÿงน Remmove/cleanup existing k3d clusters

k3d cluster delete nodejs-demo

Create k3d cluster named nodejs-demo

k3d cluster create nodejs-demo 

Validate cluster is runnning

kubectl cluster-info

Should yield somthing like the following:

Kubernetes control plane is running at https://0.0.0.0:52951
CoreDNS is running at https://0.0.0.0:52951/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
Metrics-server is running at https://0.0.0.0:52951/api/v1/namespaces/kube-system/services/https:metrics-server:/proxy

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

๐Ÿ†™ next deploy - redis

ep-ping's People

Contributors

hagzag avatar noambaum avatar

Watchers

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