Skip to content

jiere/local-dev-cluster

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

local-dev-cluster

GitHub units-test

This repo provides the scripts to create a local kubernetes/openshift cluster to be used for development or integration tests. It is also used in Github action for kepler.

Prerequisites

  • Locate your BCC lib and linux header.
  • kubectl

Start up

  1. Modify kind config to make sure extraMounts: cover the linux header and BCC.
  2. Export CLUSTER_PROVIDER env variable:
export CLUSTER_PROVIDER=kind/microshift
  1. To setup local env run:
./main.sh up
  1. To tear down local env run:
./main.sh down

Container registry

There's a container registry available which is exposed at localhost:5001.

For kepler contributor

To set up a local cluster for kepler development We need to make the cluster connected with a local container registry.

Bump version step for this repo

  1. Check kubectl version.
  2. Check k8s cluster provider's version(as KIND).
  3. Check prometheus operator version.

How to contribute to this repo

A new k8s cluster provider

You are free to ref kind to contribute a k8s cluster, but we will have a checklist as kepler feature.

  1. Set up the k8s cluster.
  2. The connection between the specific registry and cluster, as for local development usage. We hope to pull the development image to the registry instead of a public registry.
  3. Able to get k8s cluster config, for the test case.
  4. Mount local path for linux kenerl and ebpf(BCC) inside kepler pod.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%