Skip to content
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

Can I use the porter on baremetal k8s to advertise kube api server? #125

Open
wangxin311 opened this issue Sep 4, 2020 · 6 comments
Open

Comments

@wangxin311
Copy link

There is circular dependency in metallb.

For example, if we use MetalLB to create and advertise the LB IP for api server, however kubelet cannot talk to the control plane until MetalLB has started and configured the LB IP, But MetalLB cannot start until kubelet can talk to the control plane and discover that it should be running the pod!

This issue is not specifically for metallb, wondering if porter has the same issue? Thanks

@duanjiong
Copy link
Contributor

Why kubelet has to connect to external ip, why not cluster ip?

@wangxin311
Copy link
Author

There is a user case for HA Kubernetes cluster which deployed on Baremetal to advertise Kube api server IP address, some solutions like HA proxy is working but that for L2 and many people seeking for a way to advertise it via BGP, it’s pretty common actually and I believe anyone who is going to deploy HA k8s cluster will facing the same issue.

@duanjiong
Copy link
Contributor

You may need to set up a VIP to be able to route to the first master node, and then you can continue with the rest of the operation after the cluster is up.

@duanjiong
Copy link
Contributor

@wangxin311
Copy link
Author

This is not related on how to spin up HA cluster.

Here are some discussions regarding of the issues I am talking about on metallb repo, FYI.

metallb/metallb#168

@immanuelfodor
Copy link

If you are still looking for a HA cluster, I created a small, low-resource project that solves the problem, please take a look at https://github.com/immanuelfodor/kube-karp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants