Sign inSign up

juffalow/node-docker-kubernetes

By juffalow

•Updated almost 6 years ago

Simple NodeJS application for article about how to run NodeJS applications in Kubernetes.

Image
0

3.4K

juffalow/node-docker-kubernetes repository overview

Run simple Node.js application in Kubernetes cluster⁠

⁠Routes

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"}

Tag summary

Content type

Image

Digest

Size

367.1 MB

Last updated

almost 6 years ago

docker pull juffalow/node-docker-kubernetes