Skip to content

kyoml/kyonetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kyonetes

forthebadge forthebadge

WARNING: Experimental - Do not use for realz

Concept

This is an attempt at using KyoML to generate Kubernetes manifests. KyoML is a dynamic markup language with support for custom directives and plugins.

Through the use of custom @directives, this will generate a K8s compatible yaml file

Here's a sample kyoml deployment file

How to test it out

Install dependencies

$ npm install

Run the generation script

$ npm run dev -- [arguments]

Rendering a KyoML file into a K8s YAML:

$ npm run dev -- template ./sample.kyoml

apiVersion: apps/v1
kind: Deployment
metadata:
  name: myapp
spec:
  replicas: 1
  template:
    spec:
      containers:
        - name: hashicorp/http-echo
          image: hashicorp/http-echo:latest
          ports:
            - containerPort: 80

Overriding values

$ npm run dev -- template ./sample.kyoml --image=myrepo/myimage

apiVersion: apps/v1
kind: Deployment
metadata:
  name: myapp
spec:
  replicas: 1
  template:
    spec:
      containers:
        - name: myrepo/myimage
          image: myrepo/myimage:latest
          ports:
            - containerPort: 80

About

K8s manifest generation using KyoML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published