Giter Club home page Giter Club logo

Comments (3)

jricardooliveira avatar jricardooliveira commented on August 26, 2024 1

Hi Marcel,

Thanks a lot for your help. I've managed to make it work... as I'm not a kubernetes experience professional I struggled a lot... but finally made it.

Take a look how I've done it:

apiVersion: v1
kind: Service
metadata:
  name: myapp
  annotations:
    load-balancer.hetzner.cloud/location: fsn1
    load-balancer.hetzner.cloud/use-private-ip: "true"
    load-balancer.hetzner.cloud/disable-private-ingress: "true"
spec:
  selector:
    app: myapp
  ports:
    - protocol: TCP
      port: 80
      targetPort: 5000
  type: LoadBalancer

without the use-private-ip the Loadbalancer couldn't get into the container... .and without disable-private-ingress the load balance isn't created.

Thanks,
Joao

from terraform-hcloud-talos.

mrclrchtr avatar mrclrchtr commented on August 26, 2024

As I wrote in the mail, have you red the following docs?

https://github.com/hetznercloud/hcloud-cloud-controller-manager/blob/main/docs/load_balancers.md

I think you have to add the annotation.

apiVersion: v1
kind: Service
metadata:
  name: example-service
  annotations:
    load-balancer.hetzner.cloud/location: hel1
spec:
  selector:
    app: example
  ports:
    - port: 80
      targetPort: 8080
  type: LoadBalancer

How does your service config look?

from terraform-hcloud-talos.

mrclrchtr avatar mrclrchtr commented on August 26, 2024

You are welcome. Kubernetes has a steep learning curve. Always try to understand what settings have what effects. Keep having fun.

from terraform-hcloud-talos.

Related Issues (12)

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.