A demo Kubernetes compiler
- Run
sh demo/create_cluster.shto spin up a local cluster compatible with the demo app - Run
maketo generate thekompilebinary and the demo binary, build the demo Docker image, and deploy it to k8s - Run
.build/demoto start the demo binary locally; then runcurl -XPOST localhost:8080/upload --data-binary @"me.jpg"to have the image be resized. - Port-forward to the demo pod on 8080, and then run the above
curlcommand to run the demo binary on k8s - Run
.build/kompile -f demo/main.goto generate the Kubernetes-compiled objects