Listen in on all the gossip going on in your kubernetes cluster
Add the following to your Cargo.toml file
toml
[dependencies]
scuttlebutt = "0.1"
Central to scuttlebutt is a cluster. Clusters provide an interface for feeding off of kubernetes events via a Receiver.
The default use case is to connect to a kubernetes cluster behind kube-proxy. This interface may be extended to run outside a cluster with a set of kubeconfig credentials in the future.
```rust extern crate scuttlebutt; use scuttlebutt::{Cluster, Events};
fn main() { match Cluster::new().events() { Ok(events) => { for e in events.into_iter() { println!("{:#?}", e) } } Err(e) => println!("{:#?}", e), } } ```
Doug Tangren (softprops) 2016