Skip to main content

Takes a deployment in your kubernetes cluster and turns its pod template into a KubernetesPodOperator object.

Project description

Airflow Kubernetes Pod Operator from Deployment

Or airkupofrod for short, is a tiny package which does one thing - takes a deployment in your kubernetes cluster and turns its pod template into a KubernetesPodOperator object.

Installation and usage

Ensure your airflow image has the python package airkupofrod installed

pip install airkubofrod

You will also need to make sure that a service account attached to your airflow pods has the a role capable of listing deployments bound to it. See role-binding for an example of this.

This is in addition to the role bindings necessary for the KubernetesPodOperator to work which can be seen in the airflow helm chart

Developing

Skaffold is used to test and develop inside kubernetes.

After ensuring you have:

  • Skaffold
  • Helm
  • Some type of k8s cluster available

Run:

skaffold dev --force=false --cleanup=false --status-check=false-port-forward

Then navigate to http://localhost:8080 and enable and trigger a run of the test deployments dag.

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

airkupofrod-0.1.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

airkupofrod-0.1.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file airkupofrod-0.1.0.tar.gz.

File metadata

  • Download URL: airkupofrod-0.1.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.10

File hashes

Hashes for airkupofrod-0.1.0.tar.gz
Algorithm Hash digest
SHA256 40c7859edf9b300787867bde1d9c109ed057fc2aa6d7b4760e8f1647da6b3bb2
MD5 c543b6271646a8889160823d3cf93492
BLAKE2b-256 fb36b260fcd285d4252f3454c4fcf7a2b1f3043e3a55fc9c726c8b83996522c9

See more details on using hashes here.

File details

Details for the file airkupofrod-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: airkupofrod-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.10

File hashes

Hashes for airkupofrod-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96a9aaff2015e7a2fb81c26f8aacbeeeda861a20bf7006b3415a490537d3db7b
MD5 bbc8e0b5a945e74e26421f7cb08d2e6e
BLAKE2b-256 43feb39eef3b17eed0921048fc0a13dfbeffedc00832c895bacf5f7cb79cd0fd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page