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
Hashes for pypz_k8s_deployer-0.9.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d5e64f43cfa845a10f15805900ea9a3bc36ea53be990825ea6e3abae3213492 |
|
MD5 | 847ee1c815404c7a7bdc3f3dd42c3a83 |
|
BLAKE2b-256 | 6023a355a2e418e131ccd2246a30dc90aa0eae9b3e2b454ccbd287705ee2e34c |