Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Kubernetes Blog 5 min read How-to mediumAdept

How to Pretty-Print Your Kubernetes YAML as KYAML and Why You'd Want To

KYAML is a strict, flow-style subset of YAML introduced by SIG CLI (KEP 5295) for Kubernetes manifests. It avoids whitespace-dependent structure and silent type coercion such as the "Norway bug" by always quoting string values and using braces for maps and brackets for lists. Unlike JSON, it allows comments and trailing commas. Because every KYAML file is valid YAML, existing tools and any kubectl version can consume it. KYAML output is available via `kubectl -o kyaml` (alpha in 1.34, beta in 1.35, with kuberc to set it as the default), sigs.k8s.io/yaml's yamlfmt, and Google's yamlfmt kyaml formatter (v0.21.0+), which also works in pre-commit hooks and CI.

Assumes: Kubernetes manifestsYAML syntax

Related posts

  • Kafka App? There’s a Skill for That

    Etsy Code as Craft mediumAdept

    Etsy's streaming platform team built Agent Skills that let coding agents like Claude scaffold, validate, run locally and open PRs for Kafka streaming apps that produce ML features and embeddings. The agent handles the ambiguous parts, such as interpreting the request and picking schemas and fields, then passes structured inputs to versioned scaffolding scripts so the generated code stays deterministic. Telemetry hooks emit start and completion events via protobuf to Kafka and BigQuery. Adoption was initially near zero because agents never offered the Skills. The team fixed this by adding vocabulary-based entry points and repository-level routing, and tightened Kafka ACLs and permissions for least privilege.

  • Kubernetes v1.37: Metrics API graduates to stable

    Kubernetes Blog mediumAdept

    Kubernetes v1.37 graduates the metrics.k8s.io resource Metrics API, which supplies node and Pod CPU and memory usage to kubectl top and the HorizontalPodAutoscaler, to stable v1. The v1 surface is identical to v1beta1, with the same NodeMetrics and PodMetrics types and no field or semantic changes. kubectl top prefers v1 and falls back to v1beta1, but the HPA controller still only supports v1beta1. Metrics implementations such as metrics-server must serve v1 and register a v1.metrics.k8s.io APIService, and should keep serving both versions during the transition.

  • How we use Kotlin for backend services at Zalando

    Zalando Engineering easyNovice

    Zalando moved Kotlin from TRIAL to ADOPT on its Tech Radar, making it the third supported JVM language alongside Java and Scala after 100+ new Kotlin applications were written in a year. A Kotlin Guild with 250+ members produced guidelines, templates and default tooling recommendations for backend services. These defaults include Spring Boot (with Ktor as a rising option), Gradle with Kotlin build scripts, ktlint, kotlin-logging, Lettuce for Redis, JPA or jOOQ for relational databases, and opentracing-toolbox. APIs are defined in OpenAPI and linted with Zally, and auth is handled at the Skipper ingress rather than with Spring Security.

  • How we build containerized services at GitHub using GitHub

    GitHub Engineering easyNovice

    GitHub runs hundreds of internal and production services on a "paved path": a Kubernetes-based, multi-cluster, multi-region platform plus conventions and custom tooling layered on top. Services are onboarded via a Hubot ChatOps scaffold command and a GitHub App that opens a PR with deployment.yaml, Kubernetes Deployment/Service manifests, a Debian Dockerfile, and CI checks that build images on every push. Each app/environment gets its own namespace, secrets are injected per-environment from a central vault, and deployments render manifests with the latest image and secrets before applying them across clusters. Centralizing capacity planning, security scanning, base images and deploy tooling lets teams skip cluster management and focus on their applications.

  • Our journey taking Kubernetes state metrics to the next level

    Datadog Engineering mediumAdept

    Datadog's Containers team made kube-state-metrics usable as a library: an upstream PR made the KSM Builder extensible so the MetricStore could be swapped out, with neutral-to-slightly-better benchmark results. Embedding KSM's informers directly in the Datadog Agent as a long-running Go core check, run on Cluster Check Runners or the Cluster Agent, removed the costly crawl of the /metrics endpoint. Large clusters had been producing millions of metrics every 15 seconds, and this change cut collection time 15x and halved memory and CPU footprint. It also required extending the Agent collector's interface to support long-lived check threads.

The quest for software engineering knowledge.

Look:
Layout: