Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
/ kinky Public archive

Kubernetes IN Kubernetes (yo). kubernetes-operator

License

Notifications You must be signed in to change notification settings

guilhem/kinky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Kubernetes IN Kubernetes (yo). kubernetes-operator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published