Skip to main content

Library to generate Kubernetes manifests using Python code

Project description

kubekind

Library to generate Kubernetes manifests using Python code

PyPi Code style: black

Motivation

Write manifests using Python code to improve readability and getting the benefits of IDEs IntelliSense features.

Requirements

  • Python 3.9+ on Linux, Windows or Mac

Install

pip insall kubekind

Generated a pod manifest

# test.py
from kubekind import Pod, Container

with Pod("my-pod") as pod:
    Container("bash", "bash:latest", args=["sleep", "10000"]).add()
    Container("bash_2", "bash:latest", args=["sleep", "10000"]).add()

pod.print()

Apply the manifest

python test.py | kubectl apply -f -

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

kubekind-0.0.1.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

kubekind-0.0.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file kubekind-0.0.1.tar.gz.

File metadata

  • Download URL: kubekind-0.0.1.tar.gz
  • Upload date:
  • Size: 33.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for kubekind-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4b19b8c181445f7051bd210b8674e0a90a200726231a784a6e35325b5cefe022
MD5 bbef5742ecbeff9421268e46013d312b
BLAKE2b-256 1b24e665a89bb291db20bdf6e4d7e5493624fa0d5e9bd67a1d6bea6b72aa2588

See more details on using hashes here.

File details

Details for the file kubekind-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: kubekind-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for kubekind-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec90e747044836f84d367d036be7165eb14ea1018b7e23a999f2865cd21869a6
MD5 72cd32539b7373fe8c9ea906337cf544
BLAKE2b-256 89588827f05d764dcf23f46a057c2dfda4badb6e94b065ecdfdd9df71e444f62

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