-
Notifications
You must be signed in to change notification settings - Fork 8
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
Master Assigned to Worker Nodes #9
Comments
Yes, you can definitely do it with the Helm chart! Edit the values.yaml here: https://github.com/immanuelfodor/kube-karp/blob/master/helm/values.yaml nodeSelector:
kubernetes.io/role: master The tolerations in place allow the pods to run on master nodes, the node selection can restrict the pods only to the master nodes. I only have clusters with master nodes, so I can't test this, please report back if it doesn't work. Reference: https://stackoverflow.com/questions/60404630/kubernetes-daemonset-only-on-master-nodes |
Thanks for responding swiftly!! I know that's a possibility via |
Yes, it seems my cluster also doesn't have that, this happens when blindly trusting online resources 😃 I have Check what labels and values do you have with |
Hmmm, that shouldn't happen, VIP management is not even related to k8s labels. Master nodes are all within the same subnet? Can master nodes communicate with the general multicast IP addresses to advertise themselves? See https://github.com/lorf/UCarp MULTICAST IP SELECTION section for more info. This issue seems to be related to network, the wrapped ucarp binary is probably not able to communicate to other pod's binaries, so they all think they are alone, so they all elect themselves as master and assign the VIP. |
Yes I agree with you; likely a networking issue somehow. They are all in the same subnet. Thanks for linking and pointing that out. I will continue trying to solve this and post back. |
Is If so, no packets captured. Even when not using |
Honestly, I never needed to debug multicast packets |
I had the same issue. Adding this to the end of
|
It seems that in some cases, the VIP is given to worker nodes. Is there a way to make it so that it's only assigned to control-plane nodes?
[WARNING] Non-preferred master advertising: reasserting control of VIP with another gratuitous arp
is displayed for multiple nodes, and the VIP is assigned to multiple nodes as well.Some searching indicates this could be due to a time sync issue (I am not running an NTP server) so it's likely their clocks are not in-sync.
The text was updated successfully, but these errors were encountered: