As the number of services deployed in a Kubernetes cluster increases, the number of YAML files also increases. It might become harder to manage a Kubernetes cluster, and even harder to maintain multiple environments. If you don’t want to be a YAML engineer or spend time on a new DSL, why not try JavaScript instead? It’s easier to reuse components in JavaScript. There are many out-of-the-box libraries. The IDE support is much better on JavaScript.
Kosko is a tool to organize Kubernetes YAML with JavaScript. It can validate YAML with Kubernetes OpenAPI spec and help users find problems before applying on Kubernetes. Besides, it supports multi-environment deployment, which can deploy services on multiple environments without copy-and-paste.
I will share why I developed Kosko and how do we organize Kubernetes YAML at Dcard.
About Tommy Chen
An Architect at Dcard.
GitHub: https://github.com/tommy351/