DEPLOYING NODE APPS THE "RIGHT" WAY

Dan Pastusek
Jan 14, 2019

When it comes to finally launching a Node.js application into production, there are almost unlimited options. From PM2 to Heroku to writing AWS deployments with Terraform, it can be a bit overwhelming to decide what the right service is and how much time you should spend on the problem. Most experts agree Kubernetes is the way to go, but it can be confusing to beginners, and time consuming even for veterans deploying many apps.

Introducing deploy-node-app

We built a utility which will deploy an existing node application to any kubernetes cluster. By running npx deploy-node-app inside your app's directory, this utility will generate a Dockerfile, build and push deployment images, generate Kubernetes configurations files, and trigger a deployment on your kubernetes cluster. An example:

svg

If you don't have an existing Kubernetes cluster, deploy-node-app can help you create one. KubeSail offers a free namespace, and deploy-node-app can get you registered and configured with a single click.