Skip to main content

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 image from the project root
docker build -t pypz-test-base -f deployers/k8s/test/resources/docker/Dockerfile .
  1. Load the test image onto the Kind node
kind load docker-image pypz-test-base
  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

Optionally, you might want to set a version for local testing. Using setuptools-scm, you can pretend a version via setting the following environment variable:

# Powershell
$env:SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYPZ_K8S_DEPLOYER="v1.2.3"

# Linux
export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYPZ_K8S_DEPLOYER="v1.2.3"

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.

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.10.2.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypz_k8s_deployer-0.10.2-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file pypz_k8s_deployer-0.10.2.tar.gz.

File metadata

  • Download URL: pypz_k8s_deployer-0.10.2.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pypz_k8s_deployer-0.10.2.tar.gz
Algorithm Hash digest
SHA256 351d01cec1421811984e409f762cc227cb1da7e58c1d8384a1ad698b3079fe7c
MD5 a03cd69232b3749bdc7a259b6d9173e5
BLAKE2b-256 6808596f3ac54b4dccae9230499125b379462997f35a7d20969685a8caa8a1a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypz_k8s_deployer-0.10.2.tar.gz:

Publisher: publish.yml on lazlowa/pypz-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for pypz_k8s_deployer-0.10.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b1bf19a03cbe8036b268357b842dd98ab2beb10d0b6ed50db5777210fbe8ff3a
MD5 52e4a69c39d130ac8dabff40ee0e6233
BLAKE2b-256 2db633eb65e3ce45e5afa484fa577c28f93de3fbd32c5a5c001b3db95df0df20

See more details on using hashes here.

Provenance

The following attestation bundles were made for pypz_k8s_deployer-0.10.2-py3-none-any.whl:

Publisher: publish.yml on lazlowa/pypz-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.10.2 This release

2 files

0.10.1

2 files

0.10.0

2 files

0.9.6

2 files

0.9.5

2 files

0.9.4

2 files

0.9.3

2 files

0.9.2

2 files

0.9.1

2 files

0.9.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page