-
Notifications
You must be signed in to change notification settings - Fork 6.7k
[Bug] use kube-vip-iptables image when kube_vip_lb_fwdmethod is masquerade #12145
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
Conversation
|
Welcome @aviral-agarwal! |
Hi @aviral-agarwal. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
external_openstack_cloud_controller_image_tag: "v1.32.0" | ||
|
||
kube_vip_image_repo: "{{ github_image_repo }}/kube-vip/kube-vip" | ||
kube_vip_iptables_image_repo: "{{ github_image_repo }}/kube-vip/kube-vip-iptables" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you don't need create another variable, you just need to modify it according to kube_vip_lb_fwdmethod
on kube_vip_image_repo
. (like add the condition)
{% if kube_vip_lb_fwdmethod == "masquerade" %} | ||
image: {{ kube_vip_iptables_image_repo }}:{{ kube_vip_image_tag }} | ||
{% else %} | ||
image: {{ kube_vip_image_repo }}:{{ kube_vip_image_tag }} | ||
{% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we don't need to change that.
Please reserve the release-note block and write some description in your PR content. |
Added |
Squash your commit to one. |
Squash your commit to one without merge commit. (maybe you need force to push) |
please check now, 1 single commit |
/ok-to-test |
/retest |
Hi, From logs, seems to be when |
Probably, I guess it's |
ah, yes, that is the case, I tested and confirmed the same at my end So, to fix (both approaches tested and working) Approach 1:
Approach 2:
I am updating the code according to Approach 2, to be reviewed Also, can I initiate a |
You should instead move the default definitions of Thus it's undefined at this point. |
…kube-vip/kube-vip` when `lb_fwdmethod` or `kube_vip_lb_fwdmethod` is set to `masquerade`
Understood. I was also using a custom image, and I realized earlier that the image manipulation in the Jinja template would have messed with that. And moving I tested by explicitly providing a custom image by defining If an image is not explicitly provided, the correct image basis The latest commit contains code as per above I am not sure why the 3 tests keep failing, though |
Thanks, that should do.
/approve
/lgtm
/retest-failed
There is a flake on Ubuntu with apt, it's known (though the root cause is not).
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aviral-agarwal, VannTen The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
What this PR does / why we need it:
ghcr.io/kube-vip/kube-vip
andghcr.io/kube-vip/kube-vip-iptables
https://github.com/kube-vip/kube-vip/pkgs/container/kube-vip-iptables, which needs to be selected based onlb_fwdmethod
flag in kube-vip manifest yml.If
lb_fwdmethod
ismasquerade
, thenkube-vip-iptables
image needs to be usedkube_vip_lb_fwdmethod
variableghcr.io/kube-vip/kube-vip
irrespective oflb_fwdmethod
orkube_vip_lb_fwdmethod
, which causes kube-vip to not work as expectedWhich issue(s) this PR fixes:
Fixes #
kube-vip issue 1065
kube-vip issue 874
Special notes for your reviewer:
kube_vip_iptables_image_repo
inroles\kubespray-defaults\defaults\main\download.yml
forkube-vip-iptables
image of kube-viproles\kubernetes\node\templates\manifests\kube-vip.manifest.j2
to useghcr.io/kube-vip/kube-vip-iptables
instead ofghcr.io/kube-vip/kube-vip
ifkube_vip_lb_fwdmethod
ismasquerade
kube-vip-iptables
image is only required forkube_vip_lb_fwdmethod==masquerade
. If required for any other mode, I will update.Does this PR introduce a user-facing change?:
kube_vip_lb_fwdmethod
defined with defaults inroles\kubernetes\node\defaults\main.yml
but not ininventory\sample\group_vars\k8s_cluster\addons.yml
kube_vip_lb_fwdmethod
ininventory\sample\group_vars\k8s_cluster\addons.yml
as it is frequently used by kube-vip users