
Rancher Has a Free API — Manage Kubernetes Clusters from Your Terminal
Rancher is one of the most popular open-source Kubernetes management platforms. What many developers don't know is that Rancher exposes a full REST API that lets you manage clusters, workloads, and namespaces programmatically. No paid tier required. No API key signup. Just your Rancher instance and a token. Why Use the Rancher API? Automate cluster provisioning — spin up new K8s clusters without clicking through the UI Monitor workloads — get real-time status of deployments, pods, and services Manage multi-cluster — control dozens of clusters from a single API endpoint CI/CD integration — deploy apps programmatically in your pipeline Quick Setup 1. Get Your API Token In Rancher UI: User Avatar → API & Keys → Add Key curl -s -X POST https://your-rancher.example.com/v3-public/localProviders/local?action = login \ -H "Content-Type: application/json" \ -d '{"username":"admin","password":"your-password"}' | jq -r '.token' 2. List All Clusters RANCHER_URL = "https://your-rancher.example.com"
Continue reading on Dev.to Tutorial
Opens in a new tab


