Giter Club home page Giter Club logo

Comments (3)

fhofherr avatar fhofherr commented on July 17, 2024

Hi @vukomir, I guess you could try putting the LB before your ingress controller.

from hcloud-cloud-controller-manager.

MatthiasLohr avatar MatthiasLohr commented on July 17, 2024

A LoadBalancer is a special type of a service (traffic redirection), an ingress controller is a special type of software running in your Kubernetes environment. So you can't (never) use a LoadBalancer/Service as an Ingress Controller, because it's completely different.

However, the idea of @fhofherr works like a charm: Install an Ingress Controller (e.g. nginx-ingress), and give it a Service type LoadBalancer. E.g., when you want to use the nginx-ingress helm chart, you can use a configuration similar to this one:

controller:
  config:
    use-proxy-protocol: "true"
  replicaCount: 3
  service:
    type: LoadBalancer
    annotations:
      load-balancer.hetzner.cloud/name: k8s1lb1
      load-balancer.hetzner.cloud/location: fsn1
      load-balancer.hetzner.cloud/use-private-ip: true
      load-balancer.hetzner.cloud/algorithm-type: least_connections
      load-balancer.hetzner.cloud/uses-proxyprotocol: true
      load-balancer.hetzner.cloud/hostname: k8s1lb1.example.com

Then, if you have the hcloud-cloud-controller-manager installed, it will create the LoadBalancer for you, forwards the traffic to nginx-ingress and nginx-ingress will do the rest.

from hcloud-cloud-controller-manager.

github-actions avatar github-actions commented on July 17, 2024

This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs.

from hcloud-cloud-controller-manager.

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.