Introduction
kube-script
is a infrastructure as code solution to k8s ops.
Status
Proof of Concept
Features
- No yaml files.
- Type safe with Typescript.
- Safe sandbox with Deno.
Quickstart
Prerequisites
Install deno by following the official guide.
Install
kube-script
by running the following command.deno install --unstable -A --root /usr/local -n ks https://cdn.jsdelivr.net/gh/in-fun/kube-script@main/main.ts
Quick demo
You can try kube-script
without writing any code.
ks https://cdn.jsdelivr.net/gh/in-fun/kube-script/example/nginx/mod.ts
Deploy Nginx
Checkout this project.
git clone https://github.com/in-fun/kube-script.git
Generate k8s yaml files.
ks example/nginx
Show diff from current settings.
env=production ks example/nginx | kubectl diff -f -
Apply k8s resources.
env=production ks example/nginx | kubectl apply -f -