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

[comment]: # (What are your goals to be achieved at the end of this Hackweek?)

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

[comment]: # (Please link to sources and other data here.) [comment]: # (Prefer public repositories, such as GitHub!)

Resources

[comment]: # (After creating the project, please add some keywords:) [comment]: # (* What type of project mates are you looking for, which skills do you need or lack?) [comment]: # (* Which keywords will help other people to find your project?)

Looking for hackers with the skills:

Nothing? Add some keywords!

This project is part of:

Hack Week 22

Activity

  • about 1 year ago: paulgonin liked this project.
  • about 1 year ago: danishprakash liked this project.
  • about 1 year ago: mkoutny liked this project.
  • over 1 year ago: hgalalabdelazizahmed started this project.
  • over 1 year ago: hgalalabdelazizahmed originated this project.

  • Comments

    • hgalalabdelazizahmed
      about 1 year ago by hgalalabdelazizahmed | Reply

      the repo for the project: https://github.com/galal-hussein/k3k

    • moio
      about 1 year 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.

    • hgalalabdelazizahmed
      about 1 year 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.

    • moio
      about 1 year ago by moio | Reply

      I'd be curious to understand why the vcluster folks have structured the project the way they did - k3k's design idea seems much more natural to me. Please post about any of your findings!

    • hgalalabdelazizahmed
      about 1 year ago by hgalalabdelazizahmed | Reply

      @moio will do, thanks for following

    Similar Projects

    This project is one of its kind!