cover

KubeScript is a DRY infrastructure as code solution to Kubernetes DevOps

demo


Status

Beta

Features

  • No yaml files.
  • No boilerplate or hack.
  • Type based code completion with Typescript.
  • Safe sandbox with Deno.

Quickstart

Prerequisites

  1. Install deno by following the official guide.

  2. Install KubeScript by running the following command.

    deno install --unstable -A --root /usr/local -n ks https://deno.land/x/kube_script@v0.2.0/main.ts

Quick demo

You can try KubeScript without writing any code.

ks https://deno.land/x/kube_script/example/web/mod.ts

Deploy Nginx

  1. Checkout this project.

    git clone https://github.com/in-fun/KubeScript.git
  2. Generate k8s yaml files.

    ks example/nginx
  3. Show diff from current settings.

    ks example/nginx --env production | kubectl diff -f -
  4. Apply k8s resources.

    ks example/nginx --env production | kubectl apply -f -