Giter VIP home page Giter VIP logo

kinky's Introduction

KINKy

Kubernetes IN Kubernetes yo

YO DAWG, WE HEARD YOU LIKE KUBERNETES; SO WE PUT A KUBERNETES IN YO KUBERNETES

Status: alpha

Concept

Spawning (a lot of) Kubernetes clusters via Kubernetes API.

Goal

After putting a kinky object in a k8s cluster. A new fully working k8s API should be spawned.
It should be accessed as a an internal service and with an ingress.

Security is not an option.

Usage

Create a new cluster via Kinky object like:

apiVersion: kinky.barpilot.github.com/v1alpha1
kind: Kinky
metadata:
  namespace: my-team
  name: my-kinky

Get a Token for kubelet to join.

On any worker server:

kubeadm join --token <token> my-kinky.my-team.example.com

Install

Prerequisites

etcd-operator is used to manage etcd clusters for spawned k8s.

For the moment, you have to use a patched version of etcd-operator. A docker version is available: guilhem/etcd-operator

A deployment can be used: /artifacts/deployment.yaml

k8sniff manage access to your spawned k8s.

To work you have to spawn this service and make it listen for external requests.

Requests will be forward to k8s server baser on "HOST" used by client.

Register CRD

First register the custom resource definition:

kubectl apply -f artifacts/kinkies-crd.yaml

Add Kinky object

An example of the Kinky kind:

kubectl apply -f artifacts/my-kinky.yaml

Run operator

Finally build and run the example:

go build
./kinky -kubeconfig ~/.kube/config

kinky's People

Contributors

guilhem avatar

Watchers

James Cloos 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.