For questions relating to load-balancing bare metal Kubernetes clusters using MetalLB. Use this tag in combination with the general [kubernetes] tag. If your question applies to Kubernetes more generally, use the [kubernetes] tag only.
Questions tagged [metallb]
118 questions
0
votes
1 answer
kubectl wait - error: no matching resources found
I am installing metallb, but need to wait for resources to be created.
kubectl wait --for=condition=ready --timeout=60s -n metallb-system --all pods
But I get:
error: no matching resources found
If I dont wait I get:
Error from server…

Chris G.
- 23,930
- 48
- 177
- 302
0
votes
0 answers
Can't use sticky session with ingress
I'm trying to enable sticky session. I got it working with NodePort but it's not working with ingress.
Environment:
BareMetal, Ubuntu, MetalLB, Ingress with nginx.
Details:
I installed MetalLB then ingress from the official documentation.
then I…

Eslam Ali
- 71
- 8
0
votes
1 answer
How to get Node IP range in Kubenetes for MetallB Config file
I am having 1 Master node and 1 worker node in K8s on premises cluster. Node Ip are 10.128.0.4 & 10.128.0.5
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION …

Divyank
- 811
- 2
- 10
- 26
0
votes
0 answers
Load balancer is being provisioned with MetalLB
I have k8s cluster v1.24.4+rke2r1, created by Rancher. I have already installed MetalLB, but when I try create pod with nginx and assign LoadBalancer I still have:
Service is ready. Load balancer is being provisioned
This is my pod and service…

PawelC
- 1,128
- 3
- 21
- 47
0
votes
1 answer
k0s + MetalLB: LoadBalancer can't assign external IP
I have K0s in single node mode on AlmaLinux 9 (SELinux disabled). I'm trying to install MetalLB to expose apps via single external IP.
Public IP: 51.159.174.224
Private IP: 10.200.106.35
K0s config
[alma@scw-k8s ~]$ cat…

f1nn
- 6,989
- 24
- 69
- 92
0
votes
1 answer
Metallb L2Advertisement/IPAdressPools assignments behave strangely
I'm using metallb 0.13.4 L2, I have below IP advertisements and pools. Nginx grabs the right IP address and metallb speakers announce it properly. So IP addresses are correctly assigned.
---
apiVersion: metallb.io/v1beta1
kind:…

aug70co
- 3,965
- 5
- 30
- 44
0
votes
2 answers
Istio routing, metallb and https issue
I am having a problem with kubernetes K3S, Istio, MetalLB and CertManager.
I have my cluster hosted on a VPS with one public ip. As my service provider don provide me with a Load Balancer, i am using MetlLb with my public Ip to reach internet with…
user15025104
0
votes
1 answer
How to access Metallb loadbalancer service from internet?
We have a K8S cluster that was installed with Kubespray, since it's on prem we configured MetalLB to assign external IPs to our lb services.
The services get the external IPs from the provided IP pool range.
By running the curl command on those…

vibsnobs
- 1
0
votes
1 answer
How to fix http 502 from external reverse proxy with upstream to ingress-nginx
Currently I have a cluster with single controller and single worker, also a nginx reverse-proxy (hhtp only) outside cluster.
Controller is at 192.168.1.65
worker is at 192.168.1.61
reverse proxy at 192.168.1.93 and public ip
here is my ingress-nginx…

Bino Oetomo
- 571
- 1
- 10
- 23
0
votes
1 answer
Trying to make a reverse proxy to allow IPs on our DNS to get certificates inside of Kubernetes
I'm trying to setup a reverse proxy to work with Kubernetes. I currently have an ingress load-balancer using Metallb and Contour with Envoy.
I also have a working certificate issuer with Let's Encrypt and cert-manager allowing services and…
0
votes
1 answer
Microk8s MetalLB ingress headless service - 502 Bad Gateway
Using the latest version of microk8s and trying to set up load balancer to headless service running in the cluster, this is what I have:
$ k get all -n ingress
NAME READY STATUS RESTARTS …

Kok How Teh
- 3,298
- 6
- 47
- 85
0
votes
3 answers
How to expose Kubernetes Services to Internet Access?
I just configured a Kubernetes Cluster with this environment
4 VPS nodes with one public IP for each node
K3S Cluster with embebed etcd (k3s version v1.22.7+k3s1)
3 master nodes
1 Worker node just for testing
MetalLB for Internal Load Balancer…

joepa37
- 3
- 4
- 21
0
votes
1 answer
Kubernetes: MetalLB not load balancing the requests properly
I've setup a kubernetes cluster with LoadBalancer type service using MetalLB and was able to get the external IP working for it. The only issue is that when I access the LB service IP on port 80 from master node, only the pods running on master node…

Bombardy
- 1
0
votes
1 answer
MetalLB-FRR-BGP route loop?
I may be running into a situation that is completely normal. But I want to talk it out anyway. In my home lab, I have a single worker node Rancher-controlled k3s cluster. I also have a FRR VM acting as the BGP peer to MetalLB within the cluster,…

Scott Balmos
- 331
- 4
- 15
0
votes
1 answer
metallb round robin not working when accessed from external HAProxy
I have a sample app running in a kubernetes cluster with 3 replicas. I am exposing the app with type=LoadBalancer using metallb.
The external ip issued is 10.10.10.11
When I run curl 10.10.10.11 I get a different pod responding for each request as…

PrestonDocks
- 4,851
- 9
- 47
- 82