Kubernetes NodePort vs LoadBalancer vs Ingress

2024 ж. 6 Мам.
49 399 Рет қаралды

Kubernetes Tutorial for Beginners.
▬▬▬▬▬▬ 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:21 ClusterIP
1:43 NodePort
3:55 LoadBalancer
5:04 Ingress
▬▬▬▬▬ 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
▬▬▬▬▬▬▬ Source Code 📚 ▬▬▬▬▬▬▬
► GitHub: github.com/antonputra/tutorials
#kubernetes #devops #cloud

Пікірлер
  • 👉 [Playlist] Kubernetes Tutorials: kzhead.info/channel/PLiMWaCMwGJXnHmccp2xlBENZ1xr4FpjXF.html 👉 [Playlist] Terraform Tutorials: kzhead.info/channel/PLiMWaCMwGJXmJdmfJjG3aK1IkU7oWvxIj.html 👉 [Playlist] Network Tutorials: kzhead.info/channel/PLiMWaCMwGJXluySjXqWG6fg1H1hzd-zWz.html 👉 [Playlist] Apache Kafka Tutorials: kzhead.info/channel/PLiMWaCMwGJXlL8-E-xu8RBwyC5YfS3V5e.html 👉 [Playlist] Performance Benchmarks: kzhead.info/channel/PLiMWaCMwGJXl-h2RgOSpdO-pQaSRwlVjd.html 👉 [Playlist] Database Tutorials: kzhead.info/channel/PLiMWaCMwGJXnhmmh5pu9sdWekdRwAzV5f.html

    @AntonPutra@AntonPutra8 ай бұрын
  • I highly appreciate your effort to teach advanced stuff with such depth and graphics. Keep them coming

    @a.nk.r7209@a.nk.r720910 ай бұрын
    • Thanks, will do!

      @AntonPutra@AntonPutra10 ай бұрын
  • Exactly what I was looking for 🙏

    @babaramdass462@babaramdass4628 ай бұрын
  • Once again, Anton, you are a legend, this is precisely what I wanted to know. Amazing!!! 🔥

    @ianmubangizi@ianmubangizi10 ай бұрын
    • Thank you!

      @AntonPutra@AntonPutra10 ай бұрын
  • Thank you, Anton! Really great stuff, one day I will be as knowledgable as you are

    @MrRin_@MrRin_9 ай бұрын
    • Thank you!

      @AntonPutra@AntonPutra9 ай бұрын
  • I really appreciate your content, thanks Anton!

    @OsascogamingBrSP@OsascogamingBrSP10 ай бұрын
    • Thank you!

      @AntonPutra@AntonPutra10 ай бұрын
  • Great visualization. Thanks for sharing.

    @nealpan@nealpan10 ай бұрын
    • Thank you!

      @AntonPutra@AntonPutra10 ай бұрын
  • Thanks. Very clear and concise

    @eleven_b_eleven@eleven_b_elevenАй бұрын
    • thanks!

      @AntonPutra@AntonPutraАй бұрын
  • Learning k8s right now and this is video is really interesting. Thank you, Anton!

    @nero4581@nero458110 ай бұрын
    • Thanks! Appreciate it! One more k8s video coming in couple of days

      @AntonPutra@AntonPutra10 ай бұрын
  • Super Helpful Anton..It helped me crack an interview!

    @ShreyasWaichal@ShreyasWaichal8 күн бұрын
    • glad that it helped!

      @AntonPutra@AntonPutra7 күн бұрын
  • Thank you for another great video, Anton. It is very informative.

    @azerbaijan50@azerbaijan5010 ай бұрын
    • Thank you! Appreciate it!

      @AntonPutra@AntonPutra10 ай бұрын
  • Your content is pure gold!!

    @Antonio-yy2ec@Antonio-yy2ec10 ай бұрын
    • Thank you!

      @AntonPutra@AntonPutra10 ай бұрын
  • Good to learn from you ❤

    @xrextamil@xrextamilАй бұрын
  • Thank you! Very clear!

    @sebastiancanevari7287@sebastiancanevari72874 ай бұрын
    • thanks!

      @AntonPutra@AntonPutra3 ай бұрын
  • спасибо ! полезная инфа !

    @mitya80@mitya808 ай бұрын
    • spasibo za otziv!

      @AntonPutra@AntonPutra8 ай бұрын
  • Amazing knowledge

    @vanshajdhar9223@vanshajdhar922310 ай бұрын
    • Thanks!

      @AntonPutra@AntonPutra10 ай бұрын
  • Wow!! Thank you!

    @kayoutube690@kayoutube69010 ай бұрын
    • Thank you!

      @AntonPutra@AntonPutra10 ай бұрын
  • Excelente video 🤌🏽🙌🏽

    @LuisGarcia-ec5el@LuisGarcia-ec5el10 ай бұрын
    • Thank you!

      @AntonPutra@AntonPutra10 ай бұрын
  • perfect explanation, keep it up!

    @bunny96@bunny963 ай бұрын
    • thanks! will do

      @AntonPutra@AntonPutra3 ай бұрын
  • Very well explained!

    @farzadmf@farzadmf10 ай бұрын
    • Thank you!

      @AntonPutra@AntonPutra10 ай бұрын
  • Thanks Teacher

    @diegonayalazo@diegonayalazo5 ай бұрын
  • @anton great work

    @HoneyHaiderMengha@HoneyHaiderMengha6 ай бұрын
    • Thank you Mengha!

      @AntonPutra@AntonPutra6 ай бұрын
  • What a vid. Thanks again

    @RafaelDurelli@RafaelDurelli10 ай бұрын
    • Thanks Rafael!

      @AntonPutra@AntonPutra10 ай бұрын
  • Great video. Thank you.

    @ukaszl.9943@ukaszl.994310 ай бұрын
    • my pleasure!

      @AntonPutra@AntonPutra10 ай бұрын
  • nicely explained. Thankyou!

    @Gouravpandey1@Gouravpandey16 күн бұрын
    • Thanks!

      @AntonPutra@AntonPutra6 күн бұрын
  • Very well explained.

    @leoperez2566@leoperez25666 ай бұрын
    • thanks!

      @AntonPutra@AntonPutra6 ай бұрын
  • Thanks

    @danielecerboni418@danielecerboni4189 ай бұрын
  • Awesome!

    @nforlife@nforlife10 ай бұрын
    • Thank you!

      @AntonPutra@AntonPutra10 ай бұрын
  • Subscribed and liked

    @RashmiDuneja@RashmiDuneja3 ай бұрын
    • thank you!

      @AntonPutra@AntonPutra3 ай бұрын
  • Looking forward on Kubernetes 1.27: Avoid Collisions Assigning Ports to NodePort Services

    @zekeluther@zekeluther9 ай бұрын
    • What's your use case for NodePorts?

      @AntonPutra@AntonPutra9 ай бұрын
    • @@AntonPutra chatbot platform with different market region.

      @zekeluther@zekeluther9 ай бұрын
    • @@zekeluther I mean your use case for nodeports, why not to use load balancer or ingress?

      @AntonPutra@AntonPutra9 ай бұрын
  • Informative content .. Which tool do you use for graphics ?

    @anas6435@anas64354 ай бұрын
    • thanks, adobe suite

      @AntonPutra@AntonPutra4 ай бұрын
  • What about using NodePort to aggregate different services under 1 load balancer using backends, instance-groups, url-maps, and HTTPS proxy?

    @xianxiangchang5251@xianxiangchang52519 ай бұрын
    • Well that's how cloud providers used to do it behind the load balancer type service. Nowadays, they utilize IP mode and route traffic directly to the pod. On-premise, perhaps...

      @AntonPutra@AntonPutra9 ай бұрын
  • Great Explanation! But I’m still not sure what to use for my setup, I want to setup a kubernetes cluster in the cloud so each node one VM. My cloud provider has a Load Balancer service but limits the possible targets it can connect to, so I thought I will connect the Cloud Load Balancer to a Ingress/Load Balancer on the Cluster which then routes the traffic accordingly. That way I only use 3 Targets of my load balancer and my Cluster also controls the certs, so I don’t need to pay extra for more certs and load balancer recourses. How could I accomplish that, and is this even possible when wanting a production grade/ready cluster?

    @maxmustermann9858@maxmustermann98585 ай бұрын
    • You can use the Nginx ingress controller. Set it up using a single 'target,' possibly two for HTTP/S, and then internally route to your services using the Nginx controller.

      @AntonPutra@AntonPutra5 ай бұрын
    • @@AntonPutra Thanks! So my way wasn’t completely wrong. But as I understand this would now be a single point of failure, so how can I have HA Ingress Controller? Then the external load balancer can point to the 3 or more ingress controller.

      @maxmustermann9858@maxmustermann98585 ай бұрын
  • Thanks for content Anton! May I ask your opinion, is it worth getting a certificate in Kubernetes(CKA or CKAD)?

    @675FresH@675FresH10 ай бұрын
    • Personally, I never pay attention to whether a candidate has certificates or not. Perhaps someone else does.

      @AntonPutra@AntonPutra10 ай бұрын
    • That's is a perfect answer

      @nforlife@nforlife10 ай бұрын
  • dude your content is great, I am watching one after one.. thank you

    @CloudWithUgur@CloudWithUgur9 ай бұрын
    • Thank you!

      @AntonPutra@AntonPutra9 ай бұрын
  • Would you please share a tutorial for onpremise scenario, How can I deploy Ingress my onpremise kubernetes cluster? Please please please 😊

    @ashadujjaman_hiru@ashadujjaman_hiru6 ай бұрын
    • For on premise use metallb to create load balancers, then use it to deploy ingress. github.com/metallb/metallb

      @AntonPutra@AntonPutra6 ай бұрын
  • When we use the ingress, what should be the backend service type ? is it OK if its ClusterIP ?

    @kaushikkm9336@kaushikkm93365 ай бұрын
    • Use ingress when you want to share one load balancer among multiple services, which is limited to HTTP/S only. Yes, most of the time you would use ClusterIP, except in some edge cases when you use the AWS Load Balancer Controller in instance mode.

      @AntonPutra@AntonPutra5 ай бұрын
  • Anybody has an idea on the tools used to make this video (I mean animations and design) thank you !

    @peace2941@peace29417 ай бұрын
    • I use adobe suite

      @AntonPutra@AntonPutra7 ай бұрын
    • @@AntonPutra Thank you for your answer, that looks very cool but also complicated I guess it's using after Effects right?

      @peace2941@peace29417 ай бұрын
    • @@peace2941 Yes, I create graphics in Illustrator and animate them in After Effects.

      @AntonPutra@AntonPutra7 ай бұрын
    • @@AntonPutra Looks like a lot of effort, thank you, that looks really good !

      @peace2941@peace29417 ай бұрын
    • @@peace2941 Thanks

      @AntonPutra@AntonPutra7 ай бұрын
  • what lesson number is this? can't fin the docs in github

    @davidvillasmil1468@davidvillasmil14688 ай бұрын
    • I think I didn't commit any code for this lesson

      @AntonPutra@AntonPutra8 ай бұрын
  • Why does everyone show the same diagram with a load balancer with many arrows coming out of it, one of which is going into a kubernetes cluster? This only serves to confuse people, as if the data from the load balancer is a straight line pipe into a single cluster. This is not how it actually works. The external load balancer talks directly to the nodes themselves. If you're trying to set up a service mesh, maybe this diagram is accurate, but you're simply confusing people if this is not the case.

    @thedeadbaby@thedeadbaby2 ай бұрын
    • What do you mean? The arrows on one end are either the ingresses or services themselves and on the other end it's control plane

      @Circe-wz3kg@Circe-wz3kg9 күн бұрын
  • почему так сложно обяснить получше про LoadBalancer service? Ты говоришь, что он открывает под во вне, но совершенно непонятно, нужно навешивается реально какой-то балансировщик нагрузки или нет? например на 5:00 по смыслу да. а в остальном видео по смыслу нет.

    @RobertGaz@RobertGaz4 ай бұрын
    • I didn't understand the question. In the cloud, the LoadBalancer service creates a cloud load balancer and routes traffic to your app; on-premise, it depends on your configuration. Also, LoadBalancer can use node ports underneath, and if Kubernetes supports native networks (without virtual network plugins such as Flannel, Calico), it can route directly to your pod's IP address. (I don't have a Russian keyboard.)

      @AntonPutra@AntonPutra4 ай бұрын
    • @@AntonPutra Hey Anton. Thank you so much for answering! Now this seems to be clear for me.

      @RobertGaz@RobertGaz4 ай бұрын
  • ➜ ~ kubectl -n kubernetes-dashboard port-forward svc/kubernetes-dashboard 8443:443 Error from server (NotFound): namespaces "kubernetes-dashboard" not found

    @davidlee588@davidlee5888 ай бұрын
    • Have you deployed the dashboard? Run "kubectl get ns" to list all namespaces.

      @AntonPutra@AntonPutra8 ай бұрын
KZhead