Skip to content

tikalk/everc-ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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