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
Metadata
Release files for easy-kubernetes 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| easy-kubernetes-0.1.0.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| easy_kubernetes-0.1.0-py3.7.egg | Legacy Egg format | - | - | Details |
Total release size: 13.3 kB
Release files / easy-kubernetes-0.1.0.tar.gz
| Download URL | easy-kubernetes-0.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b31cdbc913512da37364225d48eaa1931d43afeec7d06d1f39172e33a4b32d58
|
|
BLAKE2b-256 checksum How to use checksums |
39e27e1f10a5db7d452d05b316e5ac225ce00b19b6b40c37f6f03531cfb9e571
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1
|
Release files / easy_kubernetes-0.1.0-py3.7.egg
| Download URL | easy_kubernetes-0.1.0-py3.7.egg |
|---|---|
| Size | 8.8 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
d0b735614d90a0daea20eb6d536db94875eb9199250404767c252b28ed3fc8ea
|
|
BLAKE2b-256 checksum How to use checksums |
e0b90f068dd0f7756da7360be5c6700563a41db0cbe0c082aabc947797b63bd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1
|