Skip to content

tomkukral/kib

Repository files navigation

kib

Build Status PyPI version Coverage Status

Kubernetes image builder is simple service capable to build custom images and push them to registry. It is using Custom resources and image controller.

Image controller is listening for changes in Kubernetes API and build missing images.

Installation

  1. Create custom resources
kubectl apply -f resources/
  1. Run controller
  • in Kubernetes cluster
kubectl apply -f deploy.yml
  • directly
python3 -m kib
  • install from PyPi
pip3 install kib
kib
  • development (including testing Kubernetes and registry)
docker-compose up -d
kubectl apply -f deploy.yml
pip3 install -r requirements.txt
source devenv.sh
python -m kib
  1. Add Image resources and wait for them to get builded. Image examples can be found in examples/

Configuration

Configuration options are defined by environment variables.

Name Default Description
KIB_CONFIG incluster Define how to load configuration
KIB_BUILD_MISSING 1 Build missing images on start
KIB_WATCH 1 Keep watching for new images

Demo

asciicast