kubelight

module
v0.0.0-...-e789424 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2022 License: Apache-2.0

README

Kubelight - ephemeral Kubernetes cluster pools


Kubelight maintains a pool of ready-to-use ephemeral Kubernetes or OpenShift clusters.

Pool

A pool defines the desired count and configuration of the clusters.

Backend

A backend defines the resources that are available to a pool. A pool can have multiple backends.

OpenShift cluster pool being run on CRC on a bare metal.
apiVersion: kubelight.dev/v1alpha1
kind: Pool
metadata:
  name: openshift-dev-pool
spec:
  backends:
    - name: m93p-machines
      type: crc
  count: 3
  flavor:
    name: openshift
    version: 4.9.x
  config:
    nodes: 1
    resources:
      nodes: 1
      cpu: 2
      memory: 16G
      disk: 50G
  strategy: aggressive
apiVersion: kubelight.dev/v1alpha1
kind: Backend
metadata:
  name: m93p-machines
spec:
  type: bare-metal
  machines:
    - host: server1.concaf
      credentials: server1-secret
      wake-on-lan: true
    - host: server2.concaf
      credentials: server2-secret
      wake-on-lan: true
    - host: server3.concaf
      credentials: server3-secret
      wake-on-lan: true
Kubernetes pool being run on GKE and AWS
apiVersion: kubelight.dev/v1alpha1
kind: Pool
metadata:
  name: kubernetes-dev-pool
spec:
  backends:
    - name: gke-backend
      type: gke
    - name: aws-backend
      type: aws
  count: 3
  flavor:
    name: openshift
    version: 4.9.x
  config:
    nodes: 1
    resources:
      nodes: 1
      cpu: 2
      memory: 16G
      disk: 50G
  strategy: aggressive
apiVersion: kubelight.dev/v1alpha1
kind: Backend
metadata:
  name: gke-backend
spec:
  type: gke
  credentials: <secret>
  zone: us-central-1c
apiVersion: kubelight.dev/v1alpha1
kind: Backend
metadata:
  name: aws-backend
spec:
  type: aws
  credentials: <secret>
CLI reference
kubelight claim <pool> <claim>
kubelight release <claim>

kubelight claims list
kubelight pools list
kubelight backends list

Directories

Path Synopsis
cmd
pkg
apis/kubelight/v1alpha1
+k8s:deepcopy-gen=package +groupName=kubelight.dev
+k8s:deepcopy-gen=package +groupName=kubelight.dev
client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/kubelight.dev/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/kubelight.dev/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
client/clientset/versioned/typed/kubelight/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/kubelight/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL