Git Product home page Git Product logo

multi-tenant-kubernetes's Introduction

Multi-Tenancy Kubernetes For The Brave

This repository contains the proof of concept for a very simple, very limited multi-tenancy Kubernetes system.

The goal is to offer multiple, independent Kubernetes API servers that are backed by a single etcd (cluster). There exists a bunch of prior art, like vcluster or kcp, but this one is mine.

The idea is as simple as it gets: run a proxy between the Kube Apiserver and etcd and make that proxy simply inject a common prefix to all keys. As it turns out, such a proxy is already part of etcd and it even already supports segregating keys (by using a --namespace, not to be confused with Kubernetes namespaces).

This allows me to run a single etcd plus (apiserver+controller-manager+grpc-proxy) for each workspace (independent Kubernetes API) that i want to handle.

Try it out

Download the repository, get yourself docker-compose and then simply

docker-compose up etcd etcd-prefix1

to start both the classic etcd server and an example proxy. Then you have to choose which to use by editing the docker-compose.yaml and adjusting the --etcd-servers flag for the Kubernetes Apiserver. Then you can just start it with

docker-compose up apiserver

and use the test.kubeconfig to interact with it.

multi-tenant-kubernetes's People

Contributors

xrstf avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.