Some new line here to test blabl
This simple nodejs app starts on port 3000 and logs 1 line into elastic search which is running in a minikube cluster. Elastic endpoint configured in Pino is the es service name in Minikube.
npm install
npm start or node app/server.js
docker build -t nodejs-app:1.0 .
docker run nodejs-app:1.0
(pre-requisite elastic search setup in Minikube)
build the uptodate image INSIDE MINIKUBE (this way docker won't have to pull the image from repo, it will take the one existing locally)
Set docker remote to Minikube's docker
eval $(minikube docker-env)
Build image inside Minikube
docker build -t nodejs-app:1.0 .
kubectl apply -f pod.yaml