kpt icon indicating copy to clipboard operation
kpt copied to clipboard

Create a feature-complete end-to-end demo

Open ciaranjohnston opened this issue 1 year ago • 20 comments

In order to encourage new community members and users, we need a compelling end-to-end demo that helps kpt stand out from e.g. helm etc. An e-commerce example would be good.

ciaranjohnston avatar Nov 19 '25 13:11 ciaranjohnston

Hi @ciaranjohnston,

I'd love to work on this feature-complete end-to-end demo for kpt. An e-commerce example sounds perfect for showing real-world usage.

Based on the description, here's how I'm thinking of starting please let me know if this aligns with your expectations:

Proposed Initial Approach

1. Select a simple cloud-native e-commerce app

Use a microservices-style sample app (frontend, product service, cart service, DB, etc.) that's easy to understand.

2. Design the kpt package structure

  • Base package: core Kubernetes manifests
  • Subpackages: frontend, backend services, database, ingress
  • Use setters/functions to make it configurable (image, replicas, domain, etc.)

3. Demonstrate kpt workflow

  • kpt pkg get to fetch the app
  • Customize via setters
  • Use kpt functions (if applicable)
  • Deploy to a cluster (kind/GKE/etc.)

4. Documentation

  • Step-by-step deployment guide
  • Explain how kpt helps vs raw YAML/Helm
  • Show how users can modify and reuse the package

Next Steps

Would you like me to first:

  • finalize the app choice, or
  • start by proposing the kpt package layout in a doc/PR?

yuvraj-kolkar17 avatar Jan 29 '26 17:01 yuvraj-kolkar17

Hi @liamfallon , @ciaranjohnston , and @CsatariGergely ,

I’m interested in the “Build e-commerce example kpt package” project for GSoC 2026. I find the idea of demonstrating kpt’s configuration-as-data approach through a clear, real-world e-commerce example very impactful.

I would like to package an application like Online Boutique as a kpt package and showcase customizations such as rebranding (florist/car accessories), localization (language, currency, tax), and deployment sizing (small/medium/large). I aim to provide clean documentation and a complete, easy-to-follow example.

Looking forward to your guidance and feedback.

mundele2004 avatar Feb 12 '26 02:02 mundele2004

Hi @liamfallon, @ciaranjohnston, and @CsatariGergely,

I’ve been reading through this issue and trying to understand the core problem it is solving.

From my understanding, the main gap this demo aims to fill is not just providing another example, but helping new users clearly understand kpt’s “configuration as data” approach through a familiar, real-world domain like e-commerce. Existing examples demonstrate individual features well, but it’s hard for beginners to see how everything fits together end-to-end.

I’m interested in approaching this demo primarily as a learning experience for first-time kpt users:

  • starting from fetching a package,
  • making safe, predictable customizations using setters,
  • and deploying without modifying the source manifests directly.

Before diving into implementation, I wanted to ask: Do you see this demo more as a beginner-focused onboarding example, or as a reusable reference package that advanced users might also adapt? I feel this distinction would influence how much abstraction we introduce via setters and package structure.

I’d be happy to start by proposing a package layout and customization points in a short design doc or PR if that aligns with your expectations.

Looking forward to your guidance.

abhay-codes07 avatar Feb 13 '26 06:02 abhay-codes07

Hi @yuvraj-kolkar17 , @mundele2004 , @abhay-codes07 thanks for your interest and engagement here!

I can see a couple of use cases for this demo. Firstly, my thinking was to use the Opentelemetry demo as an off-the-shelf example of a functional "product":

https://opentelemetry.io/docs/demo/kubernetes-deployment/#install-using-kubectl

This demo is already fairly easy to get installed using kubectl, so it should be straightforward to package the existing YAML in a kpt file as an "entry-level" example.

Then, demonstrating a use case such as "I want to change the app.kubernetes.io/instance label from opentelemetry-demo to otel-kptpackage-demo" - there are 51 instances of this label in the file, so using a kpt pipeline with the "set-labels" function would be a good way to do it.

Taking that example further, one could restructure the monolithic yaml into individual service configuration files, and look at ways to make it configurable - e.g. redimensioning services for scale, running multiple instances or distributing to different clusters. There are a lot of possibilities, if you want to join the weekly meeting to discuss in person please do, or we can continue the conversation here.

ciaranjohnston avatar Feb 13 '26 10:02 ciaranjohnston

Hi @ciaranjohnston, Thank you for the guidance this clarifies the direction a lot. I’ll start by packaging the OpenTelemetry demo into a kpt package and demonstrate the label change using set-labels. I’d be happy to join the weekly meeting as well. Could you please share the your slack id?

yuvraj-kolkar17 avatar Feb 13 '26 10:02 yuvraj-kolkar17

Hi @ciaranjohnston, Thanks a lot for the detailed guidance — this really helped clarify the direction and the reasoning behind it. I like the idea of starting with the OpenTelemetry demo as an entry-level, off-the-shelf “product”. It makes sense to begin with something that’s already easy to install via kubectl, and then use kpt to demonstrate how repetitive or large-scale changes (like updating labels across many resources) can be handled safely and declaratively.

I’m thinking of approaching this in small, incremental steps:

  • first packaging the existing OpenTelemetry Kubernetes YAML as a clean kpt package,
  • then demonstrating a concrete workflow such as refactoring and updating common labels using a kpt pipeline (e.g. set-labels),
  • and later exploring how the package can be restructured and made configurable for scale or multiple instances.

I’ll start by drafting a simple package layout and initial workflow and share it for feedback before going further.
Happy to continue the discussion here, and I’ll also try to join the weekly meeting if possible.

Thanks again for the direction!

abhay-codes07 avatar Feb 13 '26 11:02 abhay-codes07

Hi @ciaranjohnston ,

Thank you for outlining the use cases so clearly — this approach makes a lot of sense.

Using the OpenTelemetry demo as an off-the-shelf functional product is a great starting point, especially since the existing kubectl-based deployment is already straightforward. Packaging the current YAML into a kpt package as an entry-level example sounds like a practical way to demonstrate the workflow without adding unnecessary complexity at the beginning.

The label transformation example (changing app.kubernetes.io/instance from opentelemetry-demo to otel-kptpackage-demo) is particularly helpful as a concrete demonstration of kpt’s value. Applying the set-labels function across all occurrences will nicely showcase how kpt pipelines can manage large-scale configuration updates in a clean and repeatable way.

We also like the idea of gradually evolving the demo by breaking the monolithic YAML into individual service manifests and introducing configurability — such as scaling services, supporting multiple instances, or targeting different clusters. This would allow us to demonstrate both packaging and environment-specific customization in a realistic GitOps workflow.

We’ll begin by experimenting with packaging the existing manifests into a kpt structure and testing the label transformation pipeline. We’ll share updates as we progress.

Happy to join the weekly meeting as well to discuss this further and align on next steps.

Thanks again for the guidance! Best regards, Lokendra

mundele2004 avatar Feb 13 '26 12:02 mundele2004

Hi @ciaranjohnston, I’ve been reading through the thread and catching up on the ideas around using the OpenTelemetry demo. I’m interested to see how we can build on the YAML packaging part. I’ll start by exploring the demo and putting together a simple prototype around the packaging and workflow, and then share it here for feedback before going further.

Looking forward to contributing, thanks for the detailed discussion so far! Would be interested in joining the upcoming weekly meeting.

river-09 avatar Feb 18 '26 19:02 river-09

Hi @ciaranjohnston,

I've been exploring this feature and put together an initial prototype .

Prototype: https://github.com/abdulrahman11a/opentelemetry-kpt-demo

What I've done:

  • Packaged the OpenTelemetry demo as a kpt package
  • Split the monolithic YAML into individual files per resource (kind-name.yaml)
  • Demonstrated the set-labels pipeline — updating app.kubernetes.io/instance across all 84 resources in one step
  • Validated end-to-end with kpt live apply on minikube

This covers the entry-level example you described. Happy to continue the conversation here or join the weekly meeting to discuss next directions.

abdulrahman11a avatar Feb 20 '26 00:02 abdulrahman11a

This looks good @abdulrahman11a - thanks for your effort. I will explore some more and give some initial feedback

ciaranjohnston avatar Feb 25 '26 13:02 ciaranjohnston

hi @ciaranjohnston I explored packaging the OpenTelemetry demo using kpt and created a prototype to demonstrate how an existing large repository can be converted into a kpt package incrementally.

Here is my working prototype repository: https://github.com/abhay-codes07/opentelemetry-kpt-demo

I focused specifically on the kubernetes/ manifests and added:

  • Kptfile and package-context.yaml
  • A basic mutator pipeline
  • An improved README explaining usage and structure

This is intentionally different from the minimal demo-style examples, as the goal was to show how kpt can be applied to a real-world, non-trivial repo.

I would really appreciate your feedback on whether this direction aligns with it and how I can improve it further. Thanks for your time!

abhay-codes07 avatar Feb 25 '26 14:02 abhay-codes07

This looks good @abdulrahman11a - thanks for your effort. I will explore some more and give some initial feedback


Thanks a lot for checking it out, @ciaranjohnston! Really glad to hear it looks good so far

Looking forward to your feedback and happy to iterate on the prototype based on your suggestions. Also very open to discussing next steps either here or in the weekly meeting whenever you think it’s useful.

abdulrahman11a avatar Feb 25 '26 14:02 abdulrahman11a

Hey everyone,

Just wanted to drop a quick note that I've officially submitted my GSoC 2026 proposal for the e-commerce kpt package project!

A huge thanks to all the maintainers and the whole community for the help and guidance on my earlier PRs.

I'll keep an eye on this thread while the proposals are being reviewed. In the meantime, I'll be tinkering with my scripts locally to make sure my environment is fully prepped.

Cheers, Jaisheesh

Jaisheesh-2006 avatar Mar 27 '26 10:03 Jaisheesh-2006

Hi maintainers 👋

I’ve submitted my GSoC 2026 proposal titled "Build E-Commerce Example kpt Package"

In this proposal, I focus on building a practical, end-to-end e-commerce example that demonstrates how kpt can be used to manage real-world Kubernetes configurations using functions, packages, and pipelines.

My approach emphasizes:

Structuring reusable kpt packages for different services (frontend, backend, database) Leveraging kpt functions for configuration transformations and validation Providing a clear, production-like workflow that highlights kpt’s strengths in configuration management

I’ve also been exploring the existing kpt ecosystem and examples to ensure alignment with current practices.

I’d really appreciate any feedback or suggestions to further refine the direction.

Thanks for your time! I’m also continuing to work on kpt-related contributions and improvements in parallel.

abdulrahman11a avatar Mar 27 '26 13:03 abdulrahman11a

Hi, I'm Ahmed Samaila, a CS student from Lagos State University applying for this GSoC project. I've built a working proof-of-concept before submitting my proposal — 84 individual Kubernetes manifests from the OpenTelemetry Demo, with a full KRM pipeline (apply-setters → set-namespace → set-labels) and setters.yaml for customization. kpt fn render passes all 3 functions successfully (83 resources namespaced, 326 labels applied). Repo: https://github.com/ahmadu2305/otel-kpt-gsoc-demo Happy to receive feedback from the community on my approach.

ahmadu2305 avatar Mar 28 '26 20:03 ahmadu2305

Following up on my comment above — I noticed @ciaranjohnston mentioned changing app.kubernetes.io/instance from opentelemetry-demo to a custom value as a concrete demonstration. My pipeline already handles this via the set-labels function, which applied 326 labels across all 84 resources in my render test. I have also gone further by adding apply-setters with a setters.yaml so users can declaratively configure namespace and replica count — demonstrating kpt's configuration-as-data approach without editing raw YAML. This aligns directly with the entry-level example you described. Next steps I am planning:

Deployment sizing (small/medium/large) via replicas setter Currency and locale localization via setters Restructuring into subpackages per service category

Happy to join the weekly meeting to discuss further. Thank you for the guidance!

ahmadu2305 avatar Mar 28 '26 20:03 ahmadu2305

I'm interested in this GSoC project. Can I discuss with mentors?

slayer-ak4sh avatar Mar 29 '26 10:03 slayer-ak4sh

Hi @ciaranjohnston, I've just submitted my proposal for this demo! I'm particularly excited about using the Online Boutique microservices as the base, as it perfectly showcases how kpt handles complex configurations and multi-service deployments.

While waiting for the review, I'll start exploring the existing kpt functions that would best suit the 'customization' part of the e-commerce demo. Looking forward to any early feedback!

shahedalhunity754 avatar Mar 29 '26 12:03 shahedalhunity754

Hi @ciaranjohnston, @liamfallon, and @CsatariGergely, I've submitted my GSoC 2026 proposal for this project after doing deep research and understanding. It builds directly on the OpenTelemetry kpt demo I shared on Feb 25 (which received positive feedback from @ciaranjohnston — thank you!) and targets the Online Boutique as the primary deliverable, covering all four customization scenarios from this issue, a full mutator/validator pipeline, and end-to-end kpt live apply validation. I hope it will be up to the remark and you will like that, Thank you very much

abhay-codes07 avatar Mar 31 '26 12:03 abhay-codes07

Hi @ciaranjohnston, @liamfallon, and @CsatariGergely , just a quick update! I've spent the last couple of days diving deeper into the Online Boutique source code.

My main focus was on the kubernetes-manifests folder. I'm planning to modularize the frontend, productcatalogservice, and cartservice as the initial core of the demo. I'm also looking into how to use kpt setters at allow users to easily customize things like 'currency' or 'branding' without touching the YAML directory.

Can't wait to start building this if the proposal gets the green light.

shahedalhunity754 avatar Mar 31 '26 15:03 shahedalhunity754