Software Alternatives, Accelerators & Startups

Jsonnet VS Kustomize

Compare Jsonnet VS Kustomize and see what are their differences

Jsonnet logo Jsonnet

A powerful DSL for elegant description of JSON data.

Kustomize logo Kustomize

Kustomize is an intelligent Kubernetes native configuration management software that comes with the manifestation to add, remove, or update configuration options without the need for forking.
  • Jsonnet Landing page
    Landing page //
    2023-05-26
  • Kustomize Landing page
    Landing page //
    2022-04-07

Jsonnet features and specs

  • Configurability
    Jsonnet allows you to write configurations as code, enabling dynamic configuration generation and making it easier to manage complex configurations.
  • Extensibility
    Jsonnet supports functions and imports, enabling code reuse and modular configuration design across different files and projects.
  • JSON Compatibility
    Since Jsonnet is a JSON extension, it is fully compatible with JSON, meaning any valid JSON file is also valid in Jsonnet.
  • Reduce Repetition
    Jsonnet reduces redundancy through capabilities like variables and functions, helping to avoid repetitive configurations and boilerplate.
  • Final Manifest
    Jsonnet outputs a final manifest in JSON, providing a clean and widely-accepted data format that can be used directly by applications.

Possible disadvantages of Jsonnet

  • Learning Curve
    Jsonnet introduces new syntax and concepts (such as mixins and imports) that may require time to learn and adapt to, especially for developers familiar with plain JSON.
  • Tooling Support
    While gaining traction, Jsonnet still has limited tooling and IDE support compared to more established configuration languages or file formats.
  • Complexity in Parsing
    As a more expressive configuration language, Jsonnet may introduce complexity in parsing and understanding configuration files compared to using straightforward JSON.
  • Overhead
    The additional features and functionalities of Jsonnet can introduce computational overhead, potentially making it slower than using simple JSON for very massive configurations.

Kustomize features and specs

  • Declarative Syntax
    Kustomize provides a declarative approach to managing Kubernetes configurations, allowing users to specify desired states in YAML files rather than using scripts or imperative commands.
  • No Templating Required
    Unlike Helm, Kustomize does not use templates, reducing complexity and potential errors in rendering templates. Users can simply modify YAML files directly.
  • Layered Customization
    It allows users to apply multiple overlays or transformations to base configurations, enabling a modular and reusable approach to manage environments like dev, staging, and production.
  • Integration with kubectl
    Kustomize is integrated with kubectl since version 1.14, making it easy to use and deploy directly from the command line without needing additional tools.

Possible disadvantages of Kustomize

  • Complexity for Large Projects
    While Kustomize is great for simple transformations, managing large projects with many overlays can become complex, as dependencies and transformations have to be explicitly defined and managed.
  • Limited Features Compared to Helm
    Kustomize offers fewer features compared to Helm, such as lifecycle management and rich templating, which might be needed for more sophisticated deployment requirements.
  • Learning Curve
    Users new to Kubernetes configuration management might find Kustomize's model and functions hard to grasp initially, as it requires understanding of its specific YAML structure and practices.
  • Lack of Native Dependency Management
    Kustomize does not support native dependency management of resources, which can complicate handling interdependent resources compared to other tools like Helm.

Jsonnet videos

Jsonnet

More videos:

  • Review - Using Jsonnet to Package Together Dashboards, Alerts and Exporters - Tom Wilkie
  • Review - Webinar: Writing Less YAML โ€“ Using jsonnet and kubecfg to Manage Kubernetes Resources

Kustomize videos

CNCF-KCNA โ€” Kustomize

More videos:

  • Review - โšก๏ธ Enlightning - Kustomize Demystified
  • Review - Define And Deploy Apps - Feat. Helm, Kustomize, Carvel ytt, and cdk8s (You Choose!, Ch. 1, Ep. 3)

Category Popularity

0-100% (relative to Jsonnet and Kustomize)
Configuration Management
100 100%
0% 0
Development
21 21%
79% 79
Developer Tools
0 0%
100% 100
Front End Package Manager

User comments

Share your experience with using Jsonnet and Kustomize. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, Kustomize should be more popular than Jsonnet. It has been mentiond 63 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Jsonnet mentions (38)

  • YAMLpp is dynamic,self-generating YAML
    OK, what we can do now? Use a preprocessing language guaranteed to produce valid syntax, like Jsonnet for json? That wil work, for sure. However, you have now a friction problem: it's new file format that requires implementing its own toolchain (Jsonnet is not json, so editor add-ons, parsers, interpreters, libraries, etc.) and you will need to drive the team through the learning curve of a language with its own... - Source: dev.to / 8 months ago
  • Levels of Configuration Languages
    Https://jsonnet.org/ I never heard of this before. This seems like the JSON I wish I really had. Of course at some point you could just use JavaScript. - Source: Hacker News / over 1 year ago
  • Standard ML idiosyncrasies
    I've been reading the book Modern Compiler Implementation in ML lately. It's been helpful to brush up on some concepts while developing Tsonnet (my typed-aspiring Jsonnet flavor) and I hope to learn a ton more. However, I'm growing dissatisfied with some details -- not specifically the book, but the choice of the development environment. - Source: dev.to / over 1 year ago
  • Tsonnet, a humble beginning
    For the past 2 years, I've been working extensively with Jsonnet, a configuration language that augments JSON and helps eliminate repetition in our config files. It has its limits (many by design), which keeps the language simple to use. But there's one thing that keeps nagging at me when I'm deep in the code: what's the shape of the input or output of this function? And wouldn't it be great if we could type... - Source: dev.to / over 1 year ago
  • Refactor Terraform Resource Names By One Command
    Jsonnet: Use --jsonnet (-j) for advanced, programmatically controlled renaming logic. - Source: dev.to / over 1 year ago
View more

Kustomize mentions (63)

  • Release on Demand
    When a change earns its way onto main, the train builds the container image one time and tags it by the commit SHA. That image is the artifact. It runs in dev immediately. And here's the part that makes promotion boring: shipping to prod doesn't rebuild anything. It re-points a config overlay (a Kustomize overlay, in practice, committed to the same repo) at the same SHA that's already running in dev. Same bytes,... - Source: dev.to / about 1 month ago
  • ๐Ÿ” Migrating to Tekton: This blog post is about my experience migrating from Travis CI to Tekton.
    Once I covered these basic use cases, I started to review the code base of the InnerSource pipeline project. At this point I learned about kustomize which is a Kubernetes native way for updating existing configurations. This tool was used in the project to customize default configurations of various manifests, so that new, slightly different ones could be created without code duplication. For example, we could... - Source: dev.to / 4 months ago
  • Essential DevOps Tools for Ubuntu
    Kustomize [kustomize]: tool to configure Kubernetes application through patching. - Source: dev.to / 6 months ago
  • Essential DevOps Tools for macOS
    Helmfile [helmfile]: is a declarative spec for deploying helm charts that allows you to template helm chart values as well integrate patching support. - Source: dev.to / 6 months ago
  • Kubernetes Overview: Container Orchestration & Cloud-Native
    Kustomize - Configuration management tool for Kubernetes resources, enabling environment-specific customizations without template duplication. - Source: dev.to / 11 months ago
View more

What are some alternatives?

When comparing Jsonnet and Kustomize, you can also consider the following products

Dhall Configuration Language - A non-repetitive alternative to YAML

Helm.sh - The Kubernetes Package Manager

JSON diff - Compare 2 JSON and find difference

Kubernetes - Kubernetes is an open source orchestration system for Docker containers

NixOS - 25 Jun 2014 . All software components in NixOS are installed using the Nix package manager. Packages in Nix are defined using the nix language to create nix expressions.

GitHub - Originally founded as a project to simplify sharing code, GitHub has grown into an application used by over a million people to store over two million code repositories, making GitHub the largest code host in the world.