Skip to main content

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.

  1. 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.
  2. Install the subproject in editable more.
pip install -e ./deployers/k8s
  1. Start the cluster
kind create cluster
  1. Build the test images (test/resources)
docker build -t pypz-test-image .
  1. Load the test image onto the Kind node
kind load docker-image pypz-test-image
  1. To run the tests locally, you need to execute the following command:
python -m unittest discover .\deployers\k8s\test\ -p "*.py"
  1. 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


Download files

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

Source Distribution

pypz_k8s_deployer-0.9.3.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

pypz_k8s_deployer-0.9.3-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

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

Hashes for pypz_k8s_deployer-0.9.3.tar.gz
Algorithm Hash digest
SHA256 b9ad408563c3d6075d6378233f1002b5b17046c555d6d64196317f635cb57d60
MD5 0bcebfc67e1cbc4aaf3a6c5430456a6c
BLAKE2b-256 1501a4a2fc82519eeeb48198d488550940cf5affc67d2f255d80b13a7b2bb1ec

See more details on using hashes here.

File details

Details for the file pypz_k8s_deployer-0.9.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pypz_k8s_deployer-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c7f9697cec31a9e8e2f39d871c3baf19106f42172b4ccee662df704785bfb8e4
MD5 25bee25252b769402434ca16116bb026
BLAKE2b-256 33fff31fbf6fe8f42030865a2c001b204b47b1216462a3c1401ee9af9fa39e10

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