Skip to main content

cookiecutter-kustomize-deployment
cookiecutter-kustomize-deployment

Scaffold a Helm + Kustomize Kubernetes deployment, environment overlays included.

CI License: MIT Python uv

A Cookiecutter template that scaffolds a Kubernetes deployment combining a Helm upstream chart with Kustomize base + per-environment overlays. A post-generation hook resolves the chart version and renders its values.yaml automatically.

Features

  • Helm + Kustomize - a vendored upstream Helm chart wrapped in a Kustomize base with development / production overlays.
  • Dynamic chart details - the post-gen hook pulls the latest chart version and values so the deployment starts up to date.
  • Generated governance - the rendered project ships its own README, CONTRIBUTING, CODE_OF_CONDUCT and a license of your choice (MIT / GPL / Proprietary).

Requirements

  • Python 3.12+
  • Helm and helm-docs on your PATH - the post-generation hook calls them (with network access to the chart repo).

Usage

Generate a deployment straight from GitHub:

uvx cookiecutter gh:goabonga/cookiecutter-kustomize-deployment
# or: cookiecutter gh:goabonga/cookiecutter-kustomize-deployment

Or install the published template from PyPI and bake the bundled copy:

pip install cookiecutter-kustomize-deployment
cookiecutter "$(python -c 'import cookiecutter_kustomize_deployment as p; print(p.__path__[0])')"

You'll be prompted for the chart name, namespace, repository, alias, author_name and license. The generated tree:

<name>/
├── base/kustomization.yaml
├── overlays/
│   ├── development/{kustomization,secret-generator}.yaml
│   └── production/{kustomization,secret-generator}.yaml
├── resources/kustomization.yaml
├── upstream/                 # Helm chart (Chart.yaml, values.yaml, …)
├── upstream.sh
└── README.md / CONTRIBUTING.md / CODE_OF_CONDUCT.md / LICENSE

Deploy with Kustomize:

kubectl apply -k overlays/development
kubectl apply -k overlays/production

Development

git clone https://github.com/goabonga/cookiecutter-kustomize-deployment.git
cd cookiecutter-kustomize-deployment
uv sync
uv run pytest          # bakes the template (needs Helm + helm-docs + network)
uvx cookiecutter .     # generate a project from the working copy

See CONTRIBUTING.md for the workflow, the commit-message convention and the release process. By participating you agree to the Code of Conduct. Security issues: see SECURITY.md.

License

Distributed under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cookiecutter_kustomize_deployment-0.1.1.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file cookiecutter_kustomize_deployment-0.1.1.tar.gz.

File metadata

File hashes

Hashes for cookiecutter_kustomize_deployment-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5be52391299ed67ff4ccb7a1e3c3cbdb61d00a9a693e0c41834fc27db5085a1c
MD5 1ed24227f449102c9f74fcef58553797
BLAKE2b-256 3f44543a6bf21b247aef7ad60e9db62fcf1b00f15ea39fa0452c8f17ec3d8ec4

See more details on using hashes here.

Provenance

The following attestation bundles were made for cookiecutter_kustomize_deployment-0.1.1.tar.gz:

Publisher: ci.yml on goabonga/cookiecutter-kustomize-deployment

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

File details

Details for the file cookiecutter_kustomize_deployment-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for cookiecutter_kustomize_deployment-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b57dd3f609668cda13d4b37ae35a41f80cb497ffc3f24b638c0aac7a56bf703f
MD5 9d4902b55d3fc3189bab46e4022f6428
BLAKE2b-256 87cee3b558ee2d8859ee08706f68204a6a0e7256d67cc980997f16f6116b719e

See more details on using hashes here.

Provenance

The following attestation bundles were made for cookiecutter_kustomize_deployment-0.1.1-py3-none-any.whl:

Publisher: ci.yml on goabonga/cookiecutter-kustomize-deployment

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.1.1 This release

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