https://github.com/acrlabs/kompile
A demo Kubernetes compiler
https://github.com/acrlabs/kompile
Last synced: 5 months ago
JSON representation
A demo Kubernetes compiler
- Host: GitHub
- URL: https://github.com/acrlabs/kompile
- Owner: acrlabs
- License: mit
- Created: 2024-08-19T04:47:02.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-07-18T18:13:12.000Z (11 months ago)
- Last Synced: 2025-10-19T05:47:15.180Z (8 months ago)
- Language: Go
- Size: 101 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kompile
A demo Kubernetes compiler
* Run `sh demo/create_cluster.sh` to spin up a local cluster compatible with the demo app
* Run `make` to generate the `kompile` binary and the demo binary, build the demo Docker image, and deploy it to k8s
* Run `.build/demo` to start the demo binary locally; then run `curl -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 `curl` command to run the demo binary on k8s
* Run `.build/kompile -f demo/main.go` to generate the Kubernetes-compiled objects