KubeScript
is a DRY infrastructure as code solution to Kubernetes DevOps
Status
Beta
Features
- No yaml files.
- No boilerplate or hack.
- Type based code completion with Typescript.
- Safe sandbox with Deno.
Quickstart
Prerequisites
Install deno by following the official guide.
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
Checkout this project.
git clone https://github.com/in-fun/KubeScript.git
Generate k8s yaml files.
ks example/nginx
Show diff from current settings.
ks example/nginx --env production | kubectl diff -f -
Apply k8s resources.
ks example/nginx --env production | kubectl apply -f -