Imagine you have a bunch of NodeJS scripts.
You want to make sure that these scripts are running reliably and you can monitor them.
In this repo:
http-server
is a TypeScript version of a simple HTTP serverdockerhub
has Terraform scripts to publishhttp-server
to Dockerhubk8s
creates Kubernetes cluster with the HTTP server, Elasticsearch and Kibana
Why:
- Distribute Docker images instead of copying files manually
- Kubernetes uses liveness and readiness probes to check on the health of NodeJS scripts
- You now have centralised logging with Elasticsearch and Kibana
- You can use Kubernetes to gradually rollout new versions