Skip to main content

A python module to interact with kubernetes REST API.

Project description

Easy-Kubernetes

This module has purpose to create easy and fast ways to communicate with the API from kubernetes, allowing the developer to create and manage their own data with their own way. Python is a great language and very well used for DevOps Automantions. With it, creating a kubernetes module will easy many steps and automantions allowing a better infrastructure automation or management with great performance. This version requires Python 3 or later; a Python 2 version is not available… yet.

Features

  • Handle kubernetes through your python script.

  • Free to manage the data from kubernetes API on your own way.

  • There’s functions to manage it too, if you don’t like the previous ideia.

  • Simplify most of the kubernetes client functions to simple and unique interactions.

  • Simple code, simple functions, simple management. Keep simple!

Installation

To install easy-kubernetes from PYPI:

$ pip install easy-kubernetes

To install easy-kubernetes manually (please download the source code from either PYPI or Github first):

$ python setup.py install

Usage

To use easy-kubernetes, just import this module with:

$ from kubernetes import kubernetes

Then, create a instance of the class with the functionality you desire:

# Cria instancia com dados de acesso ao clusterK8s $ k8s_config = kubernetes.config(url=<k8s_master_url>, token=<serviceaccount_token>)

# Cria instancia para funcionalidades prontas do k8s $ k8s_tools = kubernetes.tools()

# Cria instancia com chamadas para REST API $ k8s = kubernetes.core(configuration=k8s_config)

After this, you will be able to use and explore all functionalities.

Enjoy!

Citing

Please cite the following paper if you use easy-kubernetes in a published work:

Gustavo Toledo, Tiago Albuquerque. “Easy-Kubernetes: Improving kubernetes auto-management through Python 3”, 2018

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

easy-kubernetes-0.1.0.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

easy_kubernetes-0.1.0-py3.7.egg (8.8 kB view hashes)

Uploaded Source

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