Go for DevOps
You're viewing a free preview. Sign in free to read every script.
Why this exists kubectl is one client of the Kubernetes API, and client go is the library behind it. Writing your own tool with it is how teams build custom checks, cleanup jobs and operators. The API itself is plain…
Talking to Kubernetes with client-go: Listing Pods, Watching and In-Cluster Authentication
Use the official Kubernetes Go client: load configuration from a kubeconfig or from inside the cluster, list pods with pagination, detect crash-looping and pending pods, watch for changes, and grant the tool just enough RBAC.
Sign in free to read this script, along with the rest of the library.
Sign in free