Project Description
A kubernetes controller that spins a dev k3s cluster within your existing kubernetes cluster, the idea is derived from k3d but instead of using docker on the desktop machine to spin a k3s cluster, I will be using kubernetes itself as the host for these clusters.
The user will have to create a Cluster
Object which should look something like this:
apiVersion: k3k.io/v1alpha1
kind: Cluster
Spec:
servers: 2
agents: 3
token: test
version: v1.25.0-k3s1
Goal for this Hackweek
- Create a POC for creating a cluster within a cluster
- Create the base controller by either using kubebuilder or wrangler as the framework
Resources
- Wrangler https://github.com/rancher/wrangler
- controller-runtime https://github.com/kubernetes-sigs/controller-runtime
- k3d https://github.com/k3d-io/k3d
Looking for hackers with the skills:
Nothing? Add some keywords!
This project is part of:
Hack Week 22
Activity
Comments
-
almost 2 years ago by hgalalabdelazizahmed | Reply
the repo for the project: https://github.com/galal-hussein/k3k
-
almost 2 years ago by moio | Reply
You might want to check out https://github.com/loft-sh/vcluster
It does something different than what you propose (creates "virtual" k3s clusters with inside of a k8s cluster, all pods run in the host cluster separated via namespaces) - but it could serve the same purpose.
-
almost 2 years ago by hgalalabdelazizahmed | Reply
@moio yeah I checked vcluster, they are doing great work with virtual clusters, however I think k3k could be different in a sense that it can be more dev-oriented by having full k3s cluster inside the namespace including workers nodes and networking, which something that vcluster doesnt do.
and since the project is still in a very early state, please let me know if you have something in mind that can make this project different as well.
Similar Projects
This project is one of its kind!