VOOZH about

URL: https://thenewstack.io/aws-cdk8s-a-dev-friendly-alternative-to-yaml-for-managing-kubernetes-clusters/

⇱ AWS' cdk8s, a Dev-Friendly Alternative to YAML for Managing Kubernetes Clusters - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2020-05-20 10:32:57
AWS' cdk8s, a Dev-Friendly Alternative to YAML for Managing Kubernetes Clusters
news,
Kubernetes / Software Development

AWS’ cdk8s, a Dev-Friendly Alternative to YAML for Managing Kubernetes Clusters

Cloud giant Amazon Web Services has launched an open-source framework, cdk8s, that provides developers with a way to define and manage Kubernetes-controlled applications and resources, using familiar programming languages, rather than the current default, YAML.
May 20th, 2020 10:32am by Joab Jackson
👁 Featued image for: AWS’ cdk8s, a Dev-Friendly Alternative to YAML for Managing Kubernetes Clusters
Feature image by Siora Photography on Unsplash.

Cloud giant Amazon Web Services has launched an open-source framework, cdk8s, that provides developers with a way to define and manage Kubernetes-controlled applications and resources, using familiar programming languages, rather than the current default, YAML.

TypeScript, JavaScript, Python, Java and .NET, are currently to be supported with more coming in the future. It can work with any upstream version of Kubernetes.

AWS demonstrated the technology last week in an AWS Summit technical session, hosted by Elad Ben-Israel, AWS principal engineer for the project, and Nathan Taber, AWS senior product manager.

The Kubernetes open source container orchestrator relies on YAML configuration files to maintain the application state. A running copy of Kubernetes continuously compares the current running deployment with what’s on the YAML file and then returns the application to the state specified in its YAML file if the two are not in sync.

“We think YAML is awesome. We use YAML everywhere,” Taber said of AWS. A declarative language, YAML is easy for admins to read and to use.

“It really does a great job of being representing the desired state of a system,” he said. “I can represent the desired state of my system and then use the state machine within Kubernetes to actually help bring that system to the desired state.”

That said, YAML does have some limitations, especially for developers who may not be as familiar with YAML or declarative languages in general.

One potential challenge is that it is very static. This can be advantageous for basic setups, such as for a simple web application. As Kubernetes applications grow more robust, however, their corresponding collection of YAML files growing harder to manage. Many organizations have resorted to copying and pasting across multiple deployments — not a scalable solution, Taber said.

As Kubernetes use grows, however, and the chore of managing the apps and clusters moves from operations teams to development teams, managing the sprawl is not very intuitive. A lot of boilerplate is used, which then can lead to issues when it is not fully understood. “Once you’ve copied or forked configurations there’s not really an established model for distributing the changes made by the source to fix bugs, or do security patching or migrate applications to new versions,”

In contrast, cdk8s allows developers to capture commonly-deployed configuration settings in a code library, which can be shared with others, and provides a foundation for building best practices and even GitOps-styled programmable infrastructure operations. In a GitOps setup, for instance, both the application and the configuration can be written in the same language, with the same toolsets and CI/CD pipeline.

The project stemmed from AWS’ work in building an internal cloud resource provisioning engine, Ben-Israel said. The idea is the same, to provide a way to define infrastructure or systems through object-oriented programming, which can be a very powerful tool for modeling systems.

Accessible through a minimal command-line interface (cli), cdk8s offers all the Kubernetes objects as strongly-typed classes. The developers define the different resources, such as containers, and their properties, such as accessible ports. Custom resource definitions (CRDs), such as operators for software such as Jenkins or databases, can also be imported.

Easing the process further, the developer can use a favorite IDE, which can provide autocompletion and other helpful aids. The software then generates a YAML file from this info. These constructs, as they are called, can be shared as libraries across different developers. The multilanguage support comes from another AWS project, called jsii.

The cdk8s framework also can be built upon. For instance, cdk8s-debore is a cdk8s library to define the Kubernetes app with just a few lines of code, covering Kubernetes resources such as Deployment, Service, HorizontalPodAutoscaler, Ingress, and others.

TRENDING STORIES
Joab Jackson is a senior editor for The New Stack, covering cloud native computing and system operations. He has reported on IT infrastructure and development for over 30 years, including stints at IDG and Government Computer News. Before that, he...
Read more from Joab Jackson
SHARE THIS STORY
TRENDING STORIES
Amazon Web Services is a sponsor of The New Stack.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.