An example of using the lambda-kube library.
This project implements Kubernetes's Guestbook Example.
kubectl
needs to be installed and configured to a cluster you have reasonable permissions on.- Leiningen (I used 2.7.1, I guess any 2.X should work).
From the project directory:
$ lein auto run
This will start a continous process, inspecting the source code,
running kubectl apply
on the result every time the source code changes.
Feel free to change the configuration in core.clj and see how it affects the cluster.
To view the application running, run kubectl proxy
, and follow
this link in a browser.
This project uses lambda-kube's testing framework
for integration tests. To execute them use: $ lein test
. The tests themselves can be found here.
Copyright © 2018 Boaz Rosenan
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.