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

Add cloud-controller support #40

Open
brandond opened this issue Jun 14, 2023 · 2 comments
Open

Add cloud-controller support #40

brandond opened this issue Jun 14, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@brandond
Copy link
Member

brandond commented Jun 14, 2023

K3k should have a cloud controller integration:

  • Disable the k3s built-in cloud provider, deploy k3k cloud controller (via injected deployment manifest) instead
  • Inner cluster cloud controller communicates with outer controller using pod serviceaccount credentials (mounted from host).
    • Cluster pod list backs node lifecycle hooks (node exists, IP list, hostname, ID, etc)
    • LB controller creates LB services in outer cluster for LB services in inner cluster
@galal-hussein galal-hussein added the enhancement New feature or request label Jun 15, 2023
@galal-hussein
Copy link
Collaborator

@brandond we need to keep in mind that the host cluster may not necessarily be a k3s or rke2 server, ideally we want to provide support for all distros as a host cluster, so exposing services as LB services on the host will be a bit challenging

@brandond
Copy link
Member Author

brandond commented Jun 15, 2023

Yeah, and RKE2 doesn't come with a loadbalancer controller at all, so that wouldn't even work out of the box on RKE2.

I guess perhaps we should allow the user to decide what type of service they want created on the outer cluster? Could be useful to both set the default, and to override that default with an annotation. Maybe also annotation to set the traffic policy on the outer service?

Can you think of any other ways that someone might want to expose a k3k service on the outer cluster, that would merit handling via the cloud provider loadbalancer controller?

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

No branches or pull requests

2 participants