Tutorial Series

From Containers to Kubernetes with Node.js

Default avatar
By Kathleen Juell
Developer and author at DigitalOcean.
From Containers to Kubernetes with Node.js

Introduction

In this series, you will build and containerize a Node.js application with a MongoDB database. The series is designed to introduce you to the fundamentals of migrating an application to Kubernetes, including modernizing your app using the 12FA methodology, containerizing it, and deploying it to Kubernetes. The series also includes information on deploying your app with Docker Compose using an Nginx reverse proxy and Let’s Encrypt.

If you’re looking for a managed Kubernetes hosting service, check out our simple, managed Kubernetes service built for growth.

Summary View
detailed View

Series Tutorials

Book

This book is designed to introduce you to using containers and Kubernetes for full-stack development. You’ll use Node.js to build a sample application and then containerize it. From there you will learn how to incorporate an external database and manage development using Docker Compose. After that you’ll learn how to deploy the application on Kubernetes and scale it using Helm.

Tutorial

Interested in Node.js but not sure where to start with Docker? This tutorial will walk you through the first step: building an image for a Node.js application and creating a container from it. We will also walk you through pushing that image to Docker Hub and using the saved image to recreate your application container.

Tutorial

In the process of working with Node.js, you may find yourself developing a project that stores and queries data. This tutorial will show you how to integrate MongoDB with an existing Node application. This process will involve adding user and database information to your application code and using the Object Document Mapper Mongoose. At the end of the tutorial, you will have a working application that will take a user’s input and display it in the browser.

Tutorial

If you are actively developing an application, Docker can simplify your workflow and the process of deploying your application to production. This tutorial will show you how to set up a development environment for a Node.js application using Docker. You will create two containers — one for the Node application and another for the MongoDB database — with Docker Compose. At the end of this tutorial, you will have a working shark information application running on Docker containers.

Tutorial

This tutorial will show you how to migrate your Docker Compose workflow to Kubernetes using kompose. You will start by creating a single-instance setup for a Node.js application with a MongoDB database on a Kubernetes cluster. You will then scale this setup to include multiple replicas of your application and database.

Tutorial

Kubernetes is a system for running modern, containerized applications at scale. With it, developers can deploy and manage containerized applications across clusters of machines. When creating multi-service deployments with Kubernetes, many developers opt to use the Helm package manager. In this tutorial, you will deploy a replicated Node.js application with a MongoDB database using Helm charts, which will be a good starting point for building other resilient and fault-tolerant applications.

Tutorial

Secure your containerized Node.js application by following this tutorial, which shows you how to deploy a Node.js application with an Nginx reverse proxy using Docker Compose. You will obtain certificates for your application domain with Let’s Encrypt and ensure that your application receives a high security rating.

Check out all our Tutorial Series

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.