HomeTutorsContact
Kubernetes - Container-Orchestration System
How to Deploy NodeJS App to Kubernetes?
Anton Putra
February 28, 2021
1 min

NodeJS

  • Create app folder

  • Initialize NodeJS App

  • Install express node module
  • Create server.js file
  • Run locally node server.js

  • Test curl localhost:8080/devops

  • Create Dockerfile

  • Create .dockerignore
  • Build docker image
  • List Docker Images
  • Run Docker Image
  • List Running Docker containers
  • Test curl localhost:8080/devops

  • Stop container

  • Create express ECR repository

  • Tag Docker Image

  • Loging to ECR
  • Push Docker Image to ECR

Kubernetes

  • Create k8s folder

  • Create 1-express.yaml file

  • Create 2-nginx-ingress.yaml file
  • Create nginx ingress
  • Create 3-http-ingress.yaml file
  • Create CNAME record
  • Create 4-cert-manager.yaml file
  • Create 5-issuer.yaml file
  • Create 8-https-ingress.yaml file

Clean up

  • Remove docker images
  • Remove express ECR

Tags

#Kubernetes

Anton Putra

DevOps Engineer

Big Data | DevOps engineer with hands-on experience in building large, scalable batch and real-time applications with Apache Spark, Hive, Flink on top of Kubernetes; designing and developing CI/CD pipelines.

Expertise

Kubernetes
Terraform
AWS
GCP

Social Media

youtubefacebooklinkedinwebsite

Related Posts

Install MongoDB on Kubernetes
How to Install MongoDB on Kubernetes?
March 07, 2021
1 min
© 2021, All Rights Reserved.

Quick Links

About UsContact Us

Social Media