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.1.tar.gz (11.4 kB view hashes)

Uploaded Source

Built Distribution

pypz_k8s_deployer-0.9.1-py3-none-any.whl (10.9 kB view hashes)

Uploaded Python 3

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