/lambdakube-example

An example for using lambda-kube

Primary LanguageClojureEclipse Public License 1.0EPL-1.0

lambdakube-example

An example of using the lambda-kube library.

This project implements Kubernetes's Guestbook Example.

Prerequisites

  1. kubectl needs to be installed and configured to a cluster you have reasonable permissions on.
  2. Leiningen (I used 2.7.1, I guess any 2.X should work).

Usage

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.

Testing

This project uses lambda-kube's testing framework for integration tests. To execute them use: $ lein test. The tests themselves can be found here.

License

Copyright © 2018 Boaz Rosenan

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.