This package provides the Kubernetes implementation of the deployer interface for pypz.
Project description
Description
This package contains the Kubernetes implementation of the deployer interface of pypz. It enables the deployment of the pipelines to a Kubernetes cluster.
Check the documentation for more details.
Install
The python artifact is hosted on https://pypi.org/, so you can install it via pip:
pip install pypz-k8s-deployer
If you want to work on it locally, then you should install in editable mode:
pip install -e ./deployers/k8s
Test
You can run tests against an existing Kubernetes cluster, however, it is more convenient and safe to use Kind for this purpose.
- Follow the instructions to install Kind. Note that Kind prepares the required config file ~/.kube/config. If you work with your own cluster, make sure, you have this file already in place.
- Install the subproject in editable more.
pip install -e ./deployers/k8s
- Start the cluster
kind create cluster
- Build the test images (test/resources)
docker build -t pypz-test-image .
- Load the test image onto the Kind node
kind load docker-image pypz-test-image
- To run the tests locally, you need to execute the following command:
python -m unittest discover .\deployers\k8s\test\ -p "*.py"
- Delete cluster
kind delete cluster
Build
Before you build, you will need to install the "build" package:
pip install build
Then from the subproject's root, you will need to execute the following command:
python -m build
It will create the source distribution and the wheel file in the "dist" folder.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pypz_k8s_deployer-0.9.3.tar.gz
.
File metadata
- Download URL: pypz_k8s_deployer-0.9.3.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9ad408563c3d6075d6378233f1002b5b17046c555d6d64196317f635cb57d60 |
|
MD5 | 0bcebfc67e1cbc4aaf3a6c5430456a6c |
|
BLAKE2b-256 | 1501a4a2fc82519eeeb48198d488550940cf5affc67d2f255d80b13a7b2bb1ec |
File details
Details for the file pypz_k8s_deployer-0.9.3-py3-none-any.whl
.
File metadata
- Download URL: pypz_k8s_deployer-0.9.3-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7f9697cec31a9e8e2f39d871c3baf19106f42172b4ccee662df704785bfb8e4 |
|
MD5 | 25bee25252b769402434ca16116bb026 |
|
BLAKE2b-256 | 33fff31fbf6fe8f42030865a2c001b204b47b1216462a3c1401ee9af9fa39e10 |