Code Monkey home page Code Monkey logo

Comments (5)

pedrofragola avatar pedrofragola commented on May 28, 2024 1

Hello,

Have you checked the doc[0] with the metallb/ingress examples?

Using the doc, my lab below:

kubectl get svc -n ingress
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
ingress LoadBalancer 10.152.183.94 192.168.8.100 80:30440/TCP,443:32443/TCP 42s

[0] https://microk8s.io/docs/addon-metallb

from microk8s.

neoaggelos avatar neoaggelos commented on May 28, 2024 1

Hi @JCzz

Note that the IP address of the ingress is purely informative. You can access the ingress using any of the node IPs.

from microk8s.

neoaggelos avatar neoaggelos commented on May 28, 2024 1

Hi @JCzz sorry for taking long to reply here.

So, microk8s enable ingress deploys nginx-ingress with the daemonset mode, which means that you can use ports 80 and 443 on any cluster node to access the services, no need to get a separate loadbalancer service.

If you create more than one ingress (and there is no conflicts between them), then they will work as expected.

80:30440 is just a port mapping that Kubernetes creates for the services, you can consider this an implementation detail.

from microk8s.

JCzz avatar JCzz commented on May 28, 2024

Thanks both @neoaggelos and @pedrofragola

I do in fact have:

kubectl get svc -n ingress
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
ingress LoadBalancer 10.152.183.94 192.168.8.100 80:30440/TCP,443:32443/TCP 42s

Sorry, I did not mention this as I disregarded it as I can't see how it is a "normal" ingress.
The yaml configuration is as a service as described here:
https://microk8s.io/docs/addon-metallb

  1. But I dont see any way to define the path?
  2. What if I need more than one ingress
  3. Also why pointing at 80:30440, but maybe this has to du with what @neoaggelos mentioned - it is only informative?

So I looked at this:
https://microk8s.io/docs/addon-ingress
hoping that it would pickup from the metallb and create an external ip(I have seen this for cloud providers).

  1. But this one, is the one creating an ingress for 127.0.0.1 and not using metallb.

from microk8s.

JCzz avatar JCzz commented on May 28, 2024

Thanks @neoaggelos

from microk8s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.