Install MetalLB load balancer in Kubernetes

Поділитися
Вставка
  • Опубліковано 28 вер 2024

КОМЕНТАРІ • 53

  • @muradmammed7839
    @muradmammed7839 Рік тому +1

    I found the answer to my question, that I had for couple months now. Thanks. .. Now I have another one. :)

  • @ronaldocorrea8007
    @ronaldocorrea8007 2 роки тому +3

    Great!!! excellent video. thanks. I would like to see a video that explains more about keeping nodes using private IP addresses and services like load balancer using external public IP addresses.

    • @VirtualizationHowto
      @VirtualizationHowto  2 роки тому +1

      Ronaldo, thanks for the ideas on future videos. I will definitely keep these ideas in mind for a future video, maybe even a series.

  • @oguzhanbenli
    @oguzhanbenli Місяць тому

    Very good explanation and it is really done with great professionalism in practice. I will be very much pleased if you can you create a video about a WordPress implementation with persistent storage in Kubernetes using MetalLB and Nginx Ingress Controller

  • @dono42
    @dono42 Рік тому +7

    Good walkthrough. However, please note that configuring MetalLB with ConfigMap is now deprecated. You should be using CRDs. The most basic L2 configuration with an IPAddressPool and L2Advertisement is sufficient for most use-cases.

    • @MrChrisk8er
      @MrChrisk8er Рік тому +2

      How can I implement it?

    • @khairulamir9869
      @khairulamir9869 9 місяців тому +1

      That's right. Today config for MetalLB must have IPAddressPool an L2Advertisement

  • @arunkushwaha8747
    @arunkushwaha8747 5 місяців тому

    How it is different from ingress controller?

  • @hackerops1407
    @hackerops1407 2 роки тому +1

    Hello actually while I am expose this load balancer ip on Google Chrome it's not working but while do curl in Linux cli it's show nginx page but not in web UI what could be the reason as my firewall already open for all traffic

    • @omar-zahid
      @omar-zahid 2 роки тому

      Check your service. `kubectl describe svc nginx` and make sure there is an event from metallb-speaker with a message "announcing from node...". If its not there, you might have missed the `L2Advertisement` config.
      ```
      apiVersion: metallb.io/v1beta1
      kind: L2Advertisement
      metadata:
      name: example
      namespace: metallb-system
      ```

  • @sonergezgen8704
    @sonergezgen8704 Рік тому

    Very Useful ! Thank you for the content. I was wondering if MetalLB also supports Windows Kubernetes Clusters. I didn't find anything on the internet.

  • @jorchard
    @jorchard Рік тому

    Really useful, thank you!

  • @telloasem
    @telloasem 11 місяців тому

    in real case scenario, where do you get those ip addresses? are those public ip of our servers?

  • @kilipsbyhades
    @kilipsbyhades Рік тому

    Great video but, just a quick question.. you did not mention the cidr for the public ips in the yaml so how does this gonna work !!

    • @VirtualizationHowto
      @VirtualizationHowto  Рік тому

      kilips, thank you for the comment! There is actually a new way to deploy that now requires an IP address configuration AND a Layer 2 association now. In the Layer 2 configuration, Metal LB assumes the CIDR/subnet from the direct connection of the interface so as long as you earmark IPs from the network it knows about, there isn't a requirement to define the subnet.

    • @kilipsbyhades
      @kilipsbyhades Рік тому

      @@VirtualizationHowto Thanks for the reply

  • @ThanhNguyenVan-ss7yy
    @ThanhNguyenVan-ss7yy Рік тому

    hi Lee,
    I watched some other videos and see that we have other kind of implementation such as Metal LB with Kubernetes ingress controller. I dont know what different between them, why we need both?

    • @VirtualizationHowto
      @VirtualizationHowto  Рік тому

      Thanh, metal LB is a bare metal load balancer. It allows automatically provisioning IP addresses for Kubernetes services. An ingress controller like Traefik allows you to take care of SSL certificates and ingress routing. So, kind of like the host headers/bindings functionality in a traditional web server. It routes incoming requests based on the resource name/FQDN it is trying to access. Hope this helps!

    • @ThanhNguyenVan-ss7yy
      @ThanhNguyenVan-ss7yy Рік тому

      @@VirtualizationHowto thanks so much

  • @e11y1985
    @e11y1985 2 роки тому

    I host my kubernetes cluster on 5 remote bare metal servers with 3 Worker Nodes. So I need to place the public IP adresses of the worker in the metallb.yaml ?

    • @Mc-jl4jh
      @Mc-jl4jh Рік тому

      Yes, but it's always good to have WAF firewall between your server and internet

  • @shanebond1975
    @shanebond1975 Рік тому

    Get rid of bg music plz !

  • @denkoech8712
    @denkoech8712 Рік тому +7

    I like how simple and clear your videos are. Kindly do a video on persistent volumes

    • @maxjackson.7533
      @maxjackson.7533 6 місяців тому

      Create a mysql database and it save everything there

  • @krunal4baps
    @krunal4baps 4 місяці тому

    Hi, I have pfsense router at home and K8S bare metal running on ubuntu with 2 master 2 worker setup.. I configured BGP on pfsense and I am hoping it's good, the logs are showing the assigned LoadBalancer IPs but somehow I can't resolve them on browser... I tried multiple times but something somewhere missing, any clue where should I be looking at? I have External IPs assigned correctly on get service output and on pfsense. It does show external ip in BGP logs that the next hop if worker nodes but when I put them in browser, it's bad gateway!!

  • @EdsonOliveira-xg3bw
    @EdsonOliveira-xg3bw 2 місяці тому

    Shouldn't we actually test the loadbalancer by accessing the service's exposed IP and port?

  • @tonylangworthy5479
    @tonylangworthy5479 Рік тому +2

    I'm an instant subscriber! You have a great teaching style, and you speak clearly. I came here because I also run a Kubernetes cluster in my home using Metallb, and I wasn't sure I had it configured properly.

  • @RoulDukeGonzo
    @RoulDukeGonzo 10 місяців тому

    I'd like the cluster to use my LAN's DNS / DHCP server... is that possible?

    • @VirtualizationHowto
      @VirtualizationHowto  9 місяців тому

      Thank you for the comment! Sign up on the forums and let's discuss: www.virtualizationhowto.com/community

  • @adityahpatel
    @adityahpatel 7 місяців тому

    Hi, great video. thanks. For a multi-node cluster with 5 Raspberry Pis, does MetalLB load balance across 5 nodes?

  • @Spelter
    @Spelter Рік тому

    If we had made a drinking game with this video, we would all be dead. Every time you say "MetalLB" a shot.
    I will try to follow your video and use the new config of MetalLB though. My last cluster was with Beowulf on Solaris, now you know how old I am. New Cloud Tech is more or less what we did 20 years ago, but on crack :)

  • @stephenokon3227
    @stephenokon3227 Рік тому

    Hello Brandon, I followed the video but my metallb is not exposing the external IP address for testing. Please what should I do?

  • @josemercado1674
    @josemercado1674 Рік тому

    You are the !^@%& man bro!!!!!!! Excuse my french but man you made it so easy. Thank you and subscribed!

  • @ilzammulkhaq8648
    @ilzammulkhaq8648 Рік тому

    how if i want to using external IP (can access from internet) where should i attach it

  • @railerswim
    @railerswim Рік тому

    Why does no one use the freaking helm chart in these tutorials?

  • @YoungfolkKnits
    @YoungfolkKnits 2 роки тому

    Great video! Thanks! Subscribed!

  • @whoiam7138
    @whoiam7138 Рік тому

    Thank you for this video! It's realy very usefull!

  • @MohamedHassan-cp3cn
    @MohamedHassan-cp3cn Рік тому

    very useful thanks for the great video

  • @iulian-casianmerce4122
    @iulian-casianmerce4122 Рік тому

    great great great. Thank you

  • @proyectowebsistemasve
    @proyectowebsistemasve Рік тому

    Thanks excellent video

  • @claysonwillis9581
    @claysonwillis9581 Рік тому

    this is very helpful thx for sharing Brandon

  • @erickishkov8101
    @erickishkov8101 Рік тому

    hey Brandon, i running my k8s cluster VirtualBox, i did everything in your tutorial and eventually got my Nginx exposed with load balancer with IP address from my range BUT I can access the page on my host machine, all the port forwarding is configured etc., and yet don't have access.

    • @akashshinde3522
      @akashshinde3522 4 місяці тому

      did you get the solution, I am facing the same problem

  • @180doman
    @180doman Рік тому

    Currently metallb manual has changed a bit and suggest to use kind: IPAddressPool and kind: L2Advertisement resources (at least for Layer 2 configuration). Is your tutorial still relevant?

    • @VirtualizationHowto
      @VirtualizationHowto  Рік тому +2

      180doman, yes you are right. I need to produce an updated video, as I had to change my processes as well for the newest versions of MetalLB.

  • @mecann1
    @mecann1 2 роки тому

    It is amazing! Thank you for this clear explanation

  • @jmmtechnology4539
    @jmmtechnology4539 Рік тому

    Excellent video, thanks!

  • @chrisumali9841
    @chrisumali9841 Рік тому

    thanks for the demo and info, have a great day

  • @RexAdamSy
    @RexAdamSy Рік тому

    thank you! you save me :)