Here's a little something I cooked up this weekend, to interact with a 
Kubernetes cluster from Clojure:

https://github.com/blak3mill3r/keenest-rube

It abstracts away the K8s API calls completely. Instead, you get the state 
of the cluster as a value in an atom. Changes to the state of the cluster 
are streamed to the Clojure client, which keeps the value in the atom 
current, and attempts to mutate the atom will cause one cluster resource 
(one at a time) to be modified/created/destroyed appropriately. So far I'm 
finding it to be a real pleasure to use compared to `kubectl` (giving it 
hand-edited json or yaml files) or worse: the Dashboard (poking around at a 
web app with a mouse).

I guess I could've just tried the Python library, but where's the fun in 
that?

I feel like this could turn into a pretty powerful tool for ops work, or 
even adding abstractions to manage resources automatically. I've been 
wanting to use Clojure (more) for infrastructure-automation/dev-ops ... but 
this is one area where the tooling available is a bit lacking, IMO.

I've been successfully toying around with this project and a real 
Kubernetes cluster in an AWS VPC.

I'd be glad to get hear any thoughts on this idea. If you're into k8s, 
please give it a whirl.

This is total toy-status right now, by the way, it's just a 
proof-of-concept. Oh, and it mixes nicely with `cider-enlighten-mode`, if 
you're into that sort of thing. I went ahead and published it to Clojars.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to