How to Deploy NodeJS App to Kubernetes? (AWS | Express.js | Ingress | HTTPS | Cert Manager)

  Рет қаралды 17,489

Anton Putra

Anton Putra

Күн бұрын

🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
▬▬▬▬▬ Experience & Location 💼 ▬▬▬▬▬
► I’m a Senior Software Engineer at Juniper Networks (12+ years of experience)
► Located in San Francisco Bay Area, CA (US citizen)
▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
► LinkedIn: / anton-putra
► Twitter/X: / antonvputra
► GitHub: github.com/antonputra
► Email: me@antonputra.com
▬▬▬▬▬▬ Related videos 👨‍🏫 ▬▬▬▬▬▬
👉 [Playlist] Kubernetes Tutorials: • Kubernetes Tutorials
👉 [Playlist] Terraform Tutorials: • Terraform Tutorials fo...
👉 [Playlist] Network Tutorials: • Network Tutorials
👉 [Playlist] Apache Kafka Tutorials: • Apache Kafka Tutorials
👉 [Playlist] Performance Benchmarks: • Performance Benchmarks
👉 [Playlist] Database Tutorials: • Database Tutorials
=========
⏱️TIMESTAMPS⏱️
0:00 Intro
0:37 Create NodeJS App
3:35 Create Nodejs Dockerfile
6:36 Create ECR Repository
9:13 Deploy NodeJS App to Kubernetes
12:20 Deploy Nginx Ingress Controller
14:36 Create Ingress for NodeJS
20:37 Deploy Cert Manager
22:45 Create Cert Manager Letsencrypt Issuer
25:10 Create Kubernetes Ingress Letsencrypt
Links
=========
Install Nginx Ingress Controller with Helm 3: • Nginx Ingress Controll...
=========
Source Code
📚 - Instructions: antonputra.com/how-to-deploy-...
🖥️ - GitHub: github.com/antonputra/tutoria...
#Kubernetes #NodeJS #@AWS

Пікірлер: 49
@AntonPutra
@AntonPutra 10 ай бұрын
🔴 - To support my channel, I’d like to offer Mentorship/On-the-Job Support/Consulting - me@antonputra.com
@AntonPutra
@AntonPutra 3 жыл бұрын
⏱️TIMESTAMPS⏱️ 0:00​ Intro 0:37​ Create NodeJS App 3:35​ Create Nodejs Dockerfile 6:36​ Create ECR Repository 9:13​ Deploy NodeJS App to Kubernetes 12:20​ Deploy Nginx Ingress Controller 14:36​ Create Ingress for NodeJS 20:37​ Deploy Cert Manager 22:45​ Create Cert Manager Letsencrypt Issuer 25:10​ Create Kubernetes Ingress Letsencrypt
@AntonPutra
@AntonPutra Жыл бұрын
👉 How to Manage Secrets in Terraform - kzbin.info/www/bejne/aX-TpXqBrNt1mqM 👉 Terraform Tips & Tricks - kzbin.info/www/bejne/bYScZaKLid5lsJY 👉 ArgoCD Tutorial - kzbin.info/www/bejne/sHjRlZqafMZkisU
@superblondmale
@superblondmale Жыл бұрын
Thanks for the interesting content, Anton!
@AntonPutra
@AntonPutra Жыл бұрын
My pleasure!
@nikhilpatel4278
@nikhilpatel4278 4 ай бұрын
This is Awesome Anton! Will it be possible to create a full stack application deployment video on K8s that is public facing?
@nikhilpatel4278
@nikhilpatel4278 4 ай бұрын
This is very nice, can you please make a video on deploying a fullstack application in ReactJS , NodeJS, Postgres on Kubernetes using Ingress, Cert Manager? Or can you please point me to any resources of blogs that you have created? Your videos are really a production grade ones, Awesome!
@Shubhamhirau
@Shubhamhirau 2 жыл бұрын
Greate Video with Lot of Information Keep doing Buddy
@AntonPutra
@AntonPutra 2 жыл бұрын
Thank you, I will :)
@mrprogrammer5927
@mrprogrammer5927 3 жыл бұрын
getting error when running kubectl apply -f http-ingress.yaml error: Error from server (InternalError): error when creating "http-ingress.yaml": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": Post "ingress-nginx-controller-admission.ingress-nginx.svc:443/extensions/v1beta1/ingresses?timeout=30s": service "ingress-nginx-controller-admission" not found
@ahmedghonem1624
@ahmedghonem1624 Жыл бұрын
Dude, you're awesome!
@AntonPutra
@AntonPutra Жыл бұрын
Thanks Ahmed! Appreciate it!
@joshua.jebadurai
@joshua.jebadurai 3 жыл бұрын
Thank you so much. Quick and to the point.
@AntonPutra
@AntonPutra 3 жыл бұрын
You're welcome!
@awsworker
@awsworker 22 күн бұрын
Sir, you are awesome
@AntonPutra
@AntonPutra 22 күн бұрын
thanks!
@Josecosgalla
@Josecosgalla 2 жыл бұрын
Thaks!! Very nice video!!!!
@AntonPutra
@AntonPutra 2 жыл бұрын
Thank you Josecosgalla!
@diptochakrabarty2420
@diptochakrabarty2420 3 жыл бұрын
Nice video , I wanted to know you added express in your Google domains for the nodejs app referencing the ingress loadbalancer , if I have separate backend and frontend services would it be adding both those service ingress urls referencing the ingress loadbalancer in my domain provider to work?
@AntonPutra
@AntonPutra 3 жыл бұрын
Usually, you would use different paths in ingress rules for backend and frontend. However, I would strongly suggest to use CDN from from the public cloud provider if you want to host static frontend, it will significantly reduce latency.
@speakthememe
@speakthememe Жыл бұрын
greate thanks
@user-nu4so7zg8r
@user-nu4so7zg8r Жыл бұрын
Hi Anton, why do you need the tcp load balancer ingress and not just the http one ?
@AntonPutra
@AntonPutra Жыл бұрын
For a long time Nginx ingress was most common approach to expose applications running in k8s. TCP/network load balancer was used to share single LB across multiple applications. Now if use EKS deploy application ingress controller
@davidmontdajonc6332
@davidmontdajonc6332 2 жыл бұрын
Hi Anton, nice tutorial! I have two questions: 1: Why do you use Letsencrypt for the AWS load balancer instead of using AWS ACM certificates? 2: How would you deploy TLS certificates in the internal load balancer in order to encrypt the traffic between the AWS load balancer and the internal kubernetes load balancer node? Thanks!
@AntonPutra
@AntonPutra 2 жыл бұрын
1. We use multiple clouds; it's just easy to manage a common layer between them using something like cert-manager. 2. Not sure if I understand the question. Kubernetes API service is already protected by a TLS certificate and is usually used with a Network load balancer that does not terminate TLS but just forwards it to Kubernetes. Therefore traffic is encrypted everywhere.
@andresarandaarpe3522
@andresarandaarpe3522 3 жыл бұрын
How to deploy React, Next, Angular, and so on with kubernetes? or how deploy? Thanks,your videos are amazing :)
@AntonPutra
@AntonPutra 3 жыл бұрын
Thank you for the suggestions.
@shreyojitdas9333
@shreyojitdas9333 3 ай бұрын
Sir can you make a complete 3-4 hour projects on aws nodejs(a complete backend of e commerce) docker kubernetes github cicd and argo CD... Please sir that would really help... Or a entire Microservices app
@AntonPutra
@AntonPutra 3 ай бұрын
thanks, i'll see what i can do, but thank you for the feedback
@elmahdifrid2836
@elmahdifrid2836 2 жыл бұрын
could you make a video please about deploying multiple applications / hosts using the same ingress controller
@AntonPutra
@AntonPutra 2 жыл бұрын
I think I already have something similar, pls take a look - NGINX Ingress Controller for Kubernetes Tutorial: YAML & Helm | Example | Prometheus | Grafana | EKS kzbin.info/www/bejne/b6SveaJ7rrekbtk
@elmahdifrid2836
@elmahdifrid2836 2 жыл бұрын
@@AntonPutra thanks for you work, Ihave two microservices and itry to communicate them via ingress the service A and by B could by targeted from outside, but they can not communicante between them
@dipakbodare1790
@dipakbodare1790 2 жыл бұрын
How can I get your .yaml file for learning purposes
@AntonPutra
@AntonPutra 2 жыл бұрын
It's available in my GitHub repo - github.com/antonputra/tutorials/tree/main/lessons/046
@estebancruztorres4435
@estebancruztorres4435 2 жыл бұрын
Nice explanation Anton, a complex one but if you pay attention it can be straight forward. Would these Ingress Controller, and Cert-Manager manifests work for let's say... general purposes in EKS clusters? I mean, 20K+ lines per manifest, really? looks like something that would have to be automated lol Perhaps it's a standard manifest, downloadable from some trusted provider? Greets from Mexico!
@estebancruztorres4435
@estebancruztorres4435 2 жыл бұрын
It would be a shame if these manifests have to be change from one version of K8s to another.
@AntonPutra
@AntonPutra 2 жыл бұрын
You you referring to the CRDs (custom resource definitions)? When the new version of API is released you also need to update CRD, not with ache version of app. I have some more in deeptutorials about nginx ingress and cert manager, that can be helpful. NGINX Ingress Controller for Kubernetes Tutorial - kzbin.info/www/bejne/b6SveaJ7rrekbtk Cert Manager Kubernetes Tutorial - kzbin.info/www/bejne/bZ6XkJ6QhLSVsNk
@353kalpeshfadtare7
@353kalpeshfadtare7 Жыл бұрын
will I be charged for this under free tier?
@AntonPutra
@AntonPutra Жыл бұрын
Well, I think the free tier does not cover the EKS master plane itself, which costs $0.10 per hour, but it does cover the EC2 instance and the load balancer. To try it out, it might cost maybe a couple of dollars, but not more.
@user-gg9bh9cz4r
@user-gg9bh9cz4r 2 жыл бұрын
Awesome video. Same as many others at your channel. Many thanks. Glory to Ukraine!
@AntonPutra
@AntonPutra 2 жыл бұрын
Many thanks!
@peopleremixes4783
@peopleremixes4783 2 жыл бұрын
Hi, what about the eks.yaml?
@AntonPutra
@AntonPutra 2 жыл бұрын
config to create EKS cluster "eksctl create cluster -f eks.yaml"
@peopleremixes4783
@peopleremixes4783 2 жыл бұрын
@@AntonPutra I know but you didn't create an eks cluster in the vid, so where was the cluster deployed?
@peopleremixes4783
@peopleremixes4783 2 жыл бұрын
@@AntonPutra I feel like this was deployed on local machine not eks. You didn't use EKS
@AntonPutra
@AntonPutra 2 жыл бұрын
@@peopleremixes4783 I would say in 95% of tutorials where I use Kubernetes, it's EKS. Maybe once or twice I used minikube and GKE
@peopleremixes4783
@peopleremixes4783 2 жыл бұрын
@@AntonPutra yeah, but you didn't show how you deployed ecr to eks in the tutorial
@sanyaolaleye8710
@sanyaolaleye8710 Жыл бұрын
simple easy deployment
@AntonPutra
@AntonPutra Жыл бұрын
Thanks Sanya!
Deploy Node.js Microservices on AWS With EKS & Helm
40:04
Michael Guay
Рет қаралды 13 М.
Now THIS is entertainment! 🤣
00:59
America's Got Talent
Рет қаралды 37 МЛН
New model rc bird unboxing and testing
00:10
Ruhul Shorts
Рет қаралды 23 МЛН
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 163 МЛН
Production-ready Node.js on Kubernetes
58:53
DigitalOcean
Рет қаралды 27 М.
Tutorial - Elastic Kubernetes Service in AWS - with Docker and NodeJs (ENGLISH)
30:14
Deploying NodeJS & Nginx to Kubernetes using Helm Charts
1:17:31
Abinav Seelan
Рет қаралды 7 М.
How to deploy a Node Express API to AWS EC2 instance
18:17
JonathanSanchez
Рет қаралды 54 М.
Kubernetes HTTPS with cert-manager and Let's Encrypt
25:30
Kubesimplify
Рет қаралды 8 М.
Kubernetes NodePort vs LoadBalancer vs Ingress?
3:39
Anton Putra
Рет қаралды 31 М.
Смартфон УЛУЧШАЕТ ЗРЕНИЕ!?
0:41
ÉЖИ АКСЁНОВ
Рет қаралды 1,1 МЛН
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Кинг Комп Shorts
Рет қаралды 1,9 МЛН
Choose a phone for your mom
0:20
ChooseGift
Рет қаралды 7 МЛН
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 1,4 МЛН