The api service which:
- responses to NODE_ENV environment variable with values
development
ordocker
orkubernetes
which expects redis_url key to be present. - Returns the current pinger value when
/
is called - Increments the value of key by 1 every time
/ping
is called - Says "its aaallive!" when
/isAlive
is called service liveness probe
returns 200 OK when/probe/liveness
is calledservice readiness probe
returns 200 OK when/probe/readiness
is 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