4.0.2 • Published 18 days ago

@kosko/yaml v4.0.2

Weekly downloads
245
License
MIT
Repository
github
Last release
18 days ago

kosko

npm.io Test codecov Conventional Commits code style: prettier Netlify Status

Write Kubernetes manifests in JavaScript.

kosko is inspired by ksonnet but use JavaScript instead of jsonnet. Unlike ksonnet, kosko neither touchs Kubernetes clusters nor supports Helm. It's focus on building and organizing Kubernetes manifests in JavaScript.

Features

  • Use JavaScript or any languages compiled to JavaScript. (e.g. TypeScript)
  • Manage multiple environments.
  • Validate against Kubernetes OpenAPI definitions.
  • Reuse variables and functions across components.

Installation

Install kosko globally with npm.

npm install -g kosko

Getting Started

Setup

First, run kosko init to set up a new kosko directory and npm install to install dependencies.

kosko init example
cd example
npm install

Create a Component

Create a new component with @kosko/template-deployed-service template.

npx @kosko/template-deployed-service --name nginx --image nginx

This template creates a new file named nginx.js in components folder.

Generate Kubernetes Manifests

Run kosko generate to print Kubernetes manifests in the console.

kosko generate

Pipe the output to kubectl to apply to a cluster.

kosko generate | kubectl apply -f -

Documentation

Learn more on the official site.

Packages

Core

Templates

Related

Contributing

See CONTRIBUTING.md.

License

MIT

4.0.2

18 days ago

4.0.1

2 months ago

4.0.0

3 months ago

3.3.0

11 months ago

3.2.1

11 months ago

3.2.0

11 months ago

3.1.0

2 years ago

3.0.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.0

3 years ago

0.1.1

3 years ago

0.1.0-alpha.1

3 years ago

0.1.0-alpha.0

3 years ago

0.0.1-alpha.0

3 years ago