question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ingress with MetalLb issues

See original GitHub issue

I have the installed latest microk8s and enabled ‘nginx-ingress’ and ‘metallb’ addons

I have everything configured and works well, but I can’t seem to get to connect traffic between:

‘nginx-controller’ service

NAME                                TYPE           CLUSTER-IP       EXTERNAL-IP      PORT(S)                      AGE
x-ingress-ingress-nginx-controller   LoadBalancer   10.152.183.90    192.168.89.165   80:31080/TCP,443:31443/TCP

and the ingress it self

NAME              CLASS    HOSTS                 ADDRESS     PORTS     AGE
x-ingress         <none>   x.com + 83 more...   127.0.0.1   80, 443   2d8h

Also, the ingress appears to bind to address 127.0.0.1. From reading through the project, i understand that this is correct, although I previously (kubeadm, cloud providers) used to get a load balancer ip (ex 192.168.89.165 instead of 127.0.0.1 in this case)

Please note that the node is on a different ip 192.168.89.160 than the loadbalancer, as per MetalLb documentation

The ingress is working and serving traffic correctly when curl-ed on 127.0.0.1

Is this correct behaviour, is there a problem with the config, how to connect route traffic from the loadbalanced ingress service? I must be missing something, but can’t figure out what

Thank you very much!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:15

github_iconTop GitHub Comments

4reactions
djjudas21commented, Jan 7, 2021

No problem @Ramblurr glad it was useful.

@evilnick I also did a write-up of this on my blog. Feel free to steal anything that’s useful for the docs - consider it open source https://jonathangazeley.com/2020/12/30/load-balancing-ingress-with-metallb-on-microk8s/

1reaction
davidberglundcommented, Sep 14, 2021

Changed my mind about automatically creating the lb svc after looking at the bash scripts. Just that reference from Ingress docs to Metallb docs should be good enough and easier to maintain in the long run.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ingress with MetalLb issues - canonical/microk8s - GitHub
I have the installed latest microk8s and enabled 'nginx-ingress' and 'metallb' addons I have everything configured and works well, ...
Read more >
K3s MetalLB ingress-nginx not working properly
Hi, I have a virtual machine build of Ubuntu 20.04 with k3s installed, --disable traefik and–disable servicelb set, CertManager, MetalLB and ...
Read more >
Troubleshooting - MetalLB
Once you setup a loadbalancer on Kubernetes and it doesn't seem to work right away, here are a few tips to troubleshoot. )...
Read more >
Bare-metal considerations - NGINX Ingress Controller
MetalLB provides a network load-balancer implementation for Kubernetes clusters that do not run on a supported cloud provider, effectively allowing the usage of ......
Read more >
Ingresses and Load Balancers in Kubernetes with MetalLB ...
Sometimes, nginx-ingress has a problem related to web hook notifications: Internal error occurred: failed calling webhook "validate.nginx.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found