Simple NodeJS application for article about how to run NodeJS applications in Kubernetes.
3.4K
Run simple Node.js application in Kubernetes cluster
The /app-id route returns random string generated on application start, so that user can see if he is connecting to different pods (containers).
{"appId":"1.13.647"}
Another request should return a different number in the end.
{"appId":"1.13.539"}
The /evn/:name route returns environment variable as a proof that the application has access to values passed from Kubernetes Secret. For example you can try /env/secretParameter.
{"secretParameter":"DatabaseCredentials"}
Content type
Image
Digest
Size
367.1 MB
Last updated
almost 6 years ago
docker pull juffalow/node-docker-kubernetes