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

Service ports: expose customization for multi-tenancy? #345

Open
vsoch opened this issue Dec 4, 2024 · 4 comments
Open

Service ports: expose customization for multi-tenancy? #345

vsoch opened this issue Dec 4, 2024 · 4 comments

Comments

@vsoch
Copy link

vsoch commented Dec 4, 2024

Hi @AkihiroSuda ! We are prototyping / preparing for a deployment of user space Kubernetes on our on-premises clusters this fiscal here. In addition to a Python wrapper that (so far) is working on AWS (headless) with flux, either as a system instance, or setup / teardown in a job:

$ flux run -N2 --setattr=attributes.user.usernetes=yes /bin/bash batch.sh 
flux-job: ƒ3SwLtzHu started                                                                                                                                                            00:02:03
Found kubeconfig at /tmp/usernetes-ƒ3swltzhu/kubeconfig
NAME                      STATUS   ROLES           AGE   VERSION
u7s-i-0348057d85534bdeb   Ready    <none>          31s   v1.31.2
u7s-i-056b730dd06cee178   Ready    control-plane   42s   v1.31.2

we are going to want to do the same on a system with multi-tenancy. This means that everyone using the same ports won't fly - and actually even the same user using the same ports won't! So I wanted to discuss / brainstorm with you about ways we can customize the various services to ensure they don't conflict. In HPC we often choose very high numbers too. Thank you!

@AkihiroSuda
Copy link
Member

The ports of kube-apiserver, kubelet, etc. can be customized via https://github.com/rootless-containers/usernetes/blob/master/docker-compose.yaml and https://github.com/rootless-containers/usernetes/blob/master/kubeadm-config.yaml

I agree that these ports should be configurable, probably via env vars

@vsoch
Copy link
Author

vsoch commented Dec 4, 2024

Yes exactly! Do you want me to take a shot at a PR this week / weekend?

@AkihiroSuda
Copy link
Member

Yes, thanks

@vsoch
Copy link
Author

vsoch commented Dec 4, 2024

Awesome! Ping @milroy - let's discuss what other envars we might want to tweak this week for our setup, and I'll follow up here with a pull request to continue discussion.

Thank you @AkihiroSuda 🙏

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

2 participants