Skip to main content

A Cookiecutter template to scaffold Helm + Kustomize Kubernetes deployments with per-environment overlays.

Project description

cookiecutter-kubernetes-deployment

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-kubernetes-deployment
# or: cookiecutter gh:goabonga/cookiecutter-kubernetes-deployment

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

pip install cookiecutter-kubernetes-deployment
cookiecutter "$(python -c 'import cookiecutter_kubernetes_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-kubernetes-deployment.git
cd cookiecutter-kubernetes-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.

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

cookiecutter_kubernetes_deployment-0.2.4.tar.gz (14.0 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_kubernetes_deployment-0.2.4.tar.gz.

File metadata

File hashes

Hashes for cookiecutter_kubernetes_deployment-0.2.4.tar.gz
Algorithm Hash digest
SHA256 a8f3b8bdee019886517b3d9faf222520f2bba6eaceccc81813ff06d275837b62
MD5 7098c09a190a96daa4a43ffd0fff6b5b
BLAKE2b-256 39fa6bf425435eb9948825136ab27d41bfcbcd8094a76cd5f629b3c2bedbf598

See more details on using hashes here.

Provenance

The following attestation bundles were made for cookiecutter_kubernetes_deployment-0.2.4.tar.gz:

Publisher: ci.yml on goabonga/cookiecutter-kubernetes-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_kubernetes_deployment-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for cookiecutter_kubernetes_deployment-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 414a1cac4ba0c0358549d069e61ba6ed45d5239970f2f225011bf8afad2dbff8
MD5 a5e3fa6e5a219aec97b0b17cbaecb11c
BLAKE2b-256 9fd03acb15223fff6f0c3054713ea860cf553fa930060f5217810600458fcf00

See more details on using hashes here.

Provenance

The following attestation bundles were made for cookiecutter_kubernetes_deployment-0.2.4-py3-none-any.whl:

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

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

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