Giter Site home page Giter Site logo

Comments (3)

aleoli avatar aleoli commented on June 23, 2024 1

Hi @IceManGreen,

The issue is that both your lb and liqo gateway pods try to bind to the same port. If you change it in the values file, it is reflected on the pod and service.

You have two possible solutions:

  • use node port services
  • run the installation with the flag --set "gateway.service.type=LoadBalancer,gateway.config.listeningPort=5873" and then edit your service to listen the port 5871

We will fix this in the next release by avoiding the usage of host ports and host networks.

from liqo.

IceManGreen avatar IceManGreen commented on June 23, 2024

Thank you, it works indeed !

For anyone looking for a temporary solution for the LoadBalancer, what I did exactly is :

liqoctl install k3s --cluster-name domain-1 \
    --api-server-url <url> \
    --set "gateway.service.type=LoadBalancer,gateway.config.listeningPort=5873" \

(Like @aleoli said)

Then edit the LoadBalancer Daemonset with kubectl edit daemonset/svclb-liqo-gateway-2fe6dd49 -n kube-system (or according to the name of your daemonset) with :

# ...
spec:
 template:
   spec:
     containers:
     - env:
       - name: SRC_PORT
        # HERE >
         value: "5871"
       - name: SRC_RANGES
         value: 0.0.0.0/0
       - name: DEST_PROTO
         value: UDP
       - name: DEST_PORT
         value: "5873"
       - name: DEST_IPS
         value: 10.43.232.220
       image: rancher/klipper-lb:v0.4.5
       imagePullPolicy: IfNotPresent
       # HERE (to avoid confusions) >
       name: lb-udp-5871
       ports:
      # HERE (all the ports) >
       - containerPort: 5871
         hostPort: 5871
         name: lb-udp-5871
         protocol: UDP

Apply the modifications and watch the installation end with success :)

from liqo.

aleoli avatar aleoli commented on June 23, 2024

Perfect, closing this issue

from liqo.

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.