Software Alternatives, Accelerators & Startups

Building a Kubernetes Cluster from Scratch With K3s And MetalLB

dnsmasq MetalLB k3s
  1. Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server.
    Pricing:
    • Open Source
    MetalLB needs a pool of IP addresses it can use for the cluster. I reserved 5 IP addresses between 10.0.0.5 and 10.0.0.10, which were not part of my dnsmasq DHCP pool. Assigning IPs outside the DHCP range prevents conflicts with dynamically assigned IPs in the network. A single IP address would have sufficed for my simple set-up, but I plan to add more services to the cluster and I might need distinct IPs for each. I created the following custom resource to configure MetalLB and named the file metallb-config.yaml:.

    #Security & Privacy #Ad Blockers #Block Ads 7 social mentions

  2. MetalLB is a load-balancer implementation for bare metal Kubernetes clusters, using standard routing protocols.
    Pricing:
    • Open Source
    Kubernetes does not provide network load balancers for bare-metal clusters out of the box. To configure load balancers in cloud environments like AWS, Azure and GCP, Kubernetes makes an API call to the cloud providerโ€™s API to provision a load balancer and external IP. Once the load balancer is provisioned, it populates the โ€œExternal IPโ€ information in load balancer. When running Kubernetes in a bare-metal cluster, Load Balancer external IPs remain in a โ€œpendingโ€ state indefinitely when created. The solution is to use something like MetalLB to create external IPs for your load balancers.

    #Web Servers #Web And Application Servers #Load Balancer / Reverse Proxy 16 social mentions

  3. 3

    k3s

    K3s is a lightweight Kubernetes distribution by Rancher Labs intended for IoT, Edge, and cloud deployments.
    Pricing:
    • Open Source
    I used K3S in my cluster because it is a lightweight, stripped-down version of Kubernetes thatโ€™s ideal for running on resource-constrained devices like Raspberry PIs I plan to use in my home lab cluster. K3S can be installed through a shell script:.

    #Developer Tools #DevOps Tools #Cloud Computing 179 social mentions

Discuss: Building a Kubernetes Cluster from Scratch With K3s And MetalLB

Log in or Post with