-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manually defining VIP IP #961
Comments
Use |
The IP If you want the endpoint to be set directly to the pods, use the annotation: |
Ok I got all that sorted. I do get this error: curl http://10.1.3.1:55002 I am not sure why. There is a dns record for this ip and no firewalls. Is there anything I am missing? |
Check if packets reach LoxiLB when using the IP
If these configurations are correct but the issue persists, please share the manifest files for LoxiLB and kube-loxilb. |
Yeah I can't ing. How can I check the packets? Assuming wireshark job... I guess I am missing some network configuration. |
Can you ping the If so, and you want to verify LoxiLB's behavior, try changing your external IP to If |
Yeah I can ping. So loxilb, and talos, sit in a 10.0.0.0/15 subnet. I can share the config files a little later on. |
Sorry I've been away, will get the config files. |
These are the manifests. Let me know if you need me to run any commands: `apiVersion: v1
|
Btw, my loxilb server is a vm? Is this relavant or physical servers only? https://docs.loxilb.io/latest/standalone/ I am on VSphere. Also, I am going to try a test. How do I specify a destination port (or endpoint port when manually creating a VIP in LoxiLB? Chatgpt gave a command like this: sudo docker exec -it loxilb loxicmd create lb --proto tcp --sport 80 --dport 8080 --vip 10.1.3.2 --dip 10.104.182.47 --mode external |
The usage of loxicmd to create a LB rule is as follows -
For example -
The endpoints are in : format. You can specify the weight as 1 unless using WRR load-balancing. For description of modes, you can follow this guide . By default, the load-balancing algorithm is round-robin but you can use 'select" flag to change to one of the other supported algorithms. |
Sorry, one more question. I am using kgateway as my ingress. I noticed this guide - https://docs.loxilb.io/main/gw-api/#tcprouteudproutehttproute - I am just wondering which steps from here are necessary to hook kgateway and loxilb together? |
All you need to do is enable the CRDs as mentioned in the document and probably use TCPRoute as per your use-case. |
Ok so looks like I was indeed missing a few things. I now have an ip address, it's as below. When I run the below, the ip does not get updated. Is there something else I should do? Also, does this mean that LoxiLB will handle this as opposed to a third party api gateway, such as kgateway? Since, Gateway API's HTTPRoute for https will be handled via loxilb-ingress module, we must prepare SSL certificates. Is there a way to let kgateway handle this? Or am I reading this wrong? |
I’m looking into the question regarding kgateway, but since I’m not very familiar with it, it’s a bit difficult to understand. Therefore, even if you create a Wouldn't you need to consider a different architectural approach to integrate the two? Just my opinion. |
Hi,
I want to use my own VIP IP for Kubernetes services. I added this to a service manifest:
However, the IP of the service if I check with kubectl, is 10.0.0.0
What am I missing? Is this approach wrong?
The text was updated successfully, but these errors were encountered: