Skip to main content

A Django app to manage kubernetes clusters and objects.

Project description

https://circleci.com/gh/IntrospectData/django-kubernetes-manager.svg?style=shield Maintainability Test Coverage DjangoKubernetesManager

Django Kubernetes Manager 0.4.7

Django Kubernetes Manager is an open source project to wrap the complexity of Kubernetes management in the simplicity of Django Rest Framework.

Introduction

Our engineering team has developed several data processing apps, and found celery wasn’t quite enough for dispatching heavier tasks. We decided to try Kubernetes Jobs, and while pleased with performance, wanted a less verbose, more object oriented way to interact with our clusters.

And thus Django Kubernetes Manager was spawned. Using Django Rest Framework and the kubernetes client library, our devs came up with the idea to treat each object we’d be deploying as a Model instance, and use the DRF viewsets and actions to create an RESTful API framework from which we could extend for each projects particular needs.

License

This project is license under the MIT license.

Please see the license dir for dependency licenses.

Docs

ReadTheDocs

Installation

Install the app using pip:

$ pip install django-kubernetes-manager

Getting Started

  1. Add “kubernetes_manager” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'kubernetes_manager',
    ]
  2. Include the kubernetes_manager URLconf in your project urls.py like this:

    path('dkm/', include('kubernetes_manager.urls')),
  3. To create models in your database, run:

    python manage.py migrate
    
    * Requires Postgresql or other database with JSON support.
  4. Start the development server and visit http://127.0.0.1:8000/admin/ to configure a TargetCluster (you’ll need the Admin app enabled).

  5. Create, update, delete, deploy, or remove a Kubernetes object using the api :)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-kubernetes-manager-0.4.7.tar.gz (139.8 kB view details)

Uploaded Source

Built Distribution

django_kubernetes_manager-0.4.7-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file django-kubernetes-manager-0.4.7.tar.gz.

File metadata

  • Download URL: django-kubernetes-manager-0.4.7.tar.gz
  • Upload date:
  • Size: 139.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for django-kubernetes-manager-0.4.7.tar.gz
Algorithm Hash digest
SHA256 ae2db564f44368a52933c1a7368f4e908ca33972cc82f97a28d2e126f404642c
MD5 cd28dfddd1d2cccd1fddcbcfa662e3c7
BLAKE2b-256 eda96cc522f22423d678d9f39929c4765bdc7ac85b5ed659254f4e3941e6637b

See more details on using hashes here.

File details

Details for the file django_kubernetes_manager-0.4.7-py3-none-any.whl.

File metadata

  • Download URL: django_kubernetes_manager-0.4.7-py3-none-any.whl
  • Upload date:
  • Size: 25.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.8.0 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for django_kubernetes_manager-0.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 09ce29c68e588dad704b2e02e4e06ba7c3cf7335933683252ce503958fee4aa6
MD5 e69cd842ce13f4608da9ee81ddc269b0
BLAKE2b-256 ad614daac5d44e6bdebf9863438d4d7bf67fb84b8d1fa244688a71b00157e0fd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page