The api service which:
- responses to NODE_ENV environment variable with values
developmentordockerorkuberneteswhich expects redis_url key to be present. - Returns the current pinger value when
/is called - Increments the value of key by 1 every time
/pingis called - Says "its aaallive!" when
/isAliveis called service liveness probereturns 200 OK when/probe/livenessis calledservice readiness probereturns 200 OK when/probe/readinessis called and redis is actually responding to the service
A "shell script entry point" service which increments the pinger in the via /ping in the msa-api every 1 sec.
A "shell script entry point" service which polls the pinger in the via / in the msa-api every 1 sec.
Stay tuned form k8s-101 & k8s 102 workshops
- docker ->
docker-compose up -d - swarm ->
docker stack deploy --compose-file docker-compose.yml demostack