A simple standalone Kubernetes client based on Go client for Kubernetes.
Its purpose is to serve as scaffolding code for:
-
Discovering server API capabilities: Listing API constructs
-
Listing Kubernetes constructs. Currently supports: Pods, Services, Namespaces, Network Policies.
-
Watching CRUD operations for those constructs & performing actions on those operations. Currently: Only listing the object details (
ObjectMeta
and object pecificSpecs
)
Based on various bits and pieces, and code samples found on the net. Thanks to all involved but particularly to our dear friends at Aporeto and their Trireme OSS project.
Requires a kubeconfig
file -- e.g. kubelet.kubeconfig
for authentication to the Kubernetes cluster
Build accordingl (go build
) then start as:
/k8s-client -alsologtostderr -kubeconfig /path/to/kubelet.kubeconfig
Via Github. TIA for any