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

  • almost 2 years ago: paulgonin liked this project.
  • almost 2 years ago: danishprakash liked this project.
  • almost 2 years ago: mkoutny liked this project.
  • almost 2 years ago: hgalalabdelazizahmed started this project.
  • almost 2 years ago: hgalalabdelazizahmed originated this project.

  • Comments

    • hgalalabdelazizahmed
      almost 2 years ago by hgalalabdelazizahmed | Reply

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

    • moio
      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.

    • hgalalabdelazizahmed
      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.

    • moio
      almost 2 years 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
      almost 2 years ago by hgalalabdelazizahmed | Reply

      @moio will do, thanks for following

    Similar Projects

    This project is one of its kind!