Need help with kqueen?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

131 Stars 29 Forks MIT License 1.2K Commits 15 Opened issues


Kubernetes queen - cluster manager

Services available


Need anything else?

Contributors list

KQueen - Kubernetes cluster manager

.. image:: :target:

.. image:: :target:

.. image:: :target:

.. image:: :target:


More information about KQueen Architecture and use cases is described in

_ file.


  • Python v3.6 and higher.
  • Pip v3 and higher.
  • Docker stable release (v17.03 and higher is preferable).
  • Docker-compose stable release (v1.16.0 and higher is preferable).

Demo environment

  • Make sure you can reach Jenkins server defined in
    variable in file
  • Run these commands to run Kqueen API and UI in containers.


docker-compose -f docker-compose.yml -f docker-compose.demo.yml up

or with mounted etcd data directory:


docker-compose -f docker-compose.etcd-volume.yml -f docker-compose.demo.yml up
  • You can login using user

    and password
    . Default username and password can be changed in
    file before first start of API.
  • Navigate to UI



  • Install dependencies


    # Debian/Ubuntu sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev

    # RedHat/CentOS: sudo yum install python-devel openldap-devel

  • Prepare python virtual environment


python -m ensurepip --default-pip
pip install --user pipenv
pipenv --python 3.6
pipenv install --dev

pipenv shell

  • Start docker container with etcd storage


docker-compose up -d
  • Initialize kqueen db: add admin user with default password


 ./ DemoOrg demoorg admin default
  • Create directories to store Kqueen data and log files

.. code-block:: bash

mkdir - m 666 /var/log/kqueen-api
mkdir - m 666 /opt/kqueen
  • Install kubespray or provide path to the existing installation by specifying
    in the config file

.. code-block:: bash

git clone -b v2.5.0 && \
pip install -r kubespray/requirements.txt
  • You can start KQueen API service directly


kqueen &
chrome --new-tab
  • Prepare kubernetes config file

Kubernetes configuration file that describes existing cluster can be used in Kqueen. Rename it with kubernetes_remote and place to the root of the project. For test purposes this file can be empty, but should be added manually.

How-to's ^^^^^^^^

  • Clean etcd storage after previous runs


etcdctl rm --recursive /kqueen
  • Add admin user, organization, mock clusters and provisioners to etcd storage at once, execute the following


  • To add a single admin user with default password within associated DemoOrg organization in provided demoorg namespace, execute the following


./ DemoOrg demoorg admin default
  • Test access token. curl, jq should be installed in your system


TOKEN=$(curl -s -H "Content-Type: application/json" --data '{"username":"admin","password":"default"}' -X POST localhost:5000/api/v1/auth | jq -r '.access_token')
echo $TOKEN
curl -H "Authorization: Bearer $TOKEN" localhost:5000/api/v1/clusters
  • Set up flask shell for manual testing and debugging


export FLASK_APP=kqueen.server
export prometheus_multiproc_dir=$(mktemp -d)
flask shell
  • Update Docker image with code changes

There are two ways to test development changes. First is automatic: create a separate branch and push PR, then TravisCI build image and push it on Docker Hub automatically. Second one is just rebuild kqueen api-image locally:


docker build -t kqueen/api:your_tag .


We load configuration from file

by default and this can be configured by
environment variable. Any environment variable matching name
will be loaded and saved to configuration.


Full documentation can be found at 

API reference is defined at

_ and Swagger UI is available at

.. |Build Status| image:: :target: .. |PyPI version| image:: :target: .. |Coverage Status| image:: :target:


Generic KQueen Overview

.. image:: :target:

AKS (Azure) in KQueen

.. image:: :target:

Network policy management in KQueen

The following video provides an overview on how to manage the Calico network policy for a Kubernetes cluster provisioned with Google Kubernetes Engine using KQueen.

.. image:: :target:

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.