No project description provided
Project description
py-helm-gen
A python package written to allow developers to transform their docker-compose.yaml files into a helm chart. This library will enable users that are unfamiliar with helm and DevOps to handle their own cloud deployments to K8s clusters.
py-helm-gen will read from an existing docker-compose.yaml file and create it into a starter helm chart all within a few lines of code.
How to install
In your terminal run:
$ pip install pyhelmgen
How to use
py-helm-gen can be used to productionalize any Python app framework such as Django, FastAPI, or Flask.
Before using py-helm-gen, make sure you have created a docker-compose.yaml file and have tested running the application with it.
# import the class to migrate your
from HelmFromComposer import HelmFromComposer
# initialize object of the HelmFromComposer class
compose_file = "docker-compose.yaml" # path to your docker compose file to this file
app_name = "boaty"
helm_generator = HelmFromComposer.HelmFromComposer(compose_file, app_name)
# create the helm chart from your object
helm_generator.create_helm_chart()
Options for the helm chart can be added at the initialization of the HelmFromComposer object as an argument. These include:
- compose_file (Required): The path to the docker-compose.yaml file
- app_name (Required): Release name
- description (Optional) (Default = A Helm chart for deploying the {{ .Release.Name }} web app): Description of the helm chart application
- replicas (Optional) (Default = 1):" Number of pod replicas
- version (Optional) (Default = 0.1.0: Chart version
- auto_sync (Optional) (Default = False): Enable true to rebuild your helm chart with every start of the application. Otherwise, HelmFromComposer will check for the helm file and only run when one does not exist.
Contact
If you want to make any contributions to the library please open a pull request on the GitHub repo. If you have any questions please email nick.caravias@gmail.com
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyhelmgen-1.4.tar.gz.
File metadata
- Download URL: pyhelmgen-1.4.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecc6e8ac46f5a9f448c9c582865cd4b0a17f2223299b17b1125dc223638027f6
|
|
| MD5 |
6f74e1424fcb5f2ac6ee5675372be212
|
|
| BLAKE2b-256 |
ace46afac6156e339240268aab94e68efd036c03de997b5ef798eda392e9fd93
|
File details
Details for the file pyhelmgen-1.4-py3-none-any.whl.
File metadata
- Download URL: pyhelmgen-1.4-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de797e04b7a0aaa36d1e1f70fd297f307de60cb06138e566a0b1e549b3df49ba
|
|
| MD5 |
9a2d937aaad6b489c8a25f99e025107f
|
|
| BLAKE2b-256 |
bb613b8708083116d23371ed21f753dceb052e7742b2e75d1dd2d9e03fc44e53
|