Giter Club home page Giter Club logo

Comments (8)

LKaemmerling avatar LKaemmerling commented on July 17, 2024 1

The "bug" i wrote above was fixed with v1.6.1 (which was just released)

from hcloud-cloud-controller-manager.

MatthiasLohr avatar MatthiasLohr commented on July 17, 2024 1

Sorry for wakening up this dead cow....

Would it be, for testing issues, acceptable to add an option to hccm which allows to use masters for load balancers if explicitely requested by the one deploying hccm? Removing the master label from the node can have side effects if some applications explicitely require to be scheduled on a master node.

from hcloud-cloud-controller-manager.

morsik avatar morsik commented on July 17, 2024 1

I've just went into this issue, and if anyone still wondering...

In current 1.28 Kubernetes you need to remove node.kubernetes.io/exclude-from-external-load-balancers label if you want your master to be added as target server.

from hcloud-cloud-controller-manager.

LKaemmerling avatar LKaemmerling commented on July 17, 2024

Masters are not reachable for Load Balancers by design: kubernetes/kubernetes#65618

You could unlabel the node: kubectl label node test node-role.kubernetes.io/master- then it will work.

We found another small bug while reproducing your testcase. You can try:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: echoserver
spec:
  replicas: 1
  selector:
    matchLabels:
      app: echoserver
  template:
    metadata:
      labels:
        app: echoserver
    spec:
      containers:
      - image: gcr.io/google_containers/echoserver:1.10
        imagePullPolicy: Always
        name: echoserver
        ports:
        - containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
  name: echoserver
  annotations:
   load-balancer.hetzner.cloud/location: hel1
   load-balancer.hetzner.cloud/health-check-interval: 15
spec:
  type: LoadBalancer
  ports:
  - port: 80
    targetPort: 8080
    protocol: TCP
  selector:
    app: echoserver

Until the bugfix release.

from hcloud-cloud-controller-manager.

BouweCeunen avatar BouweCeunen commented on July 17, 2024

Are there no other implications of removing the label from the master node? This will not cause other things to stop working?

from hcloud-cloud-controller-manager.

LKaemmerling avatar LKaemmerling commented on July 17, 2024

@BouweCeunen actually this is not a limitation from our side. This is something that comes from the k8s people.

from hcloud-cloud-controller-manager.

BouweCeunen avatar BouweCeunen commented on July 17, 2024

@BouweCeunen actually this is not a limitation from our side. This is something that comes from the k8s people.

Indeed, just thought that someone would have done it and experienced some side effects. Will take it to the community!

from hcloud-cloud-controller-manager.

apricote avatar apricote commented on July 17, 2024

Yes, adding or removing this annotation is the best way to exclude nodes from the load balancer targets.

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.