kOps
$ kops Foundation High Riskkops provisions, validates, and upgrades production Kubernetes clusters on AWS, GCP, and OpenStack. It supports -o json on kops get, --dry-run on create cluster, and defaults update cluster and rolling-update to safe preview mode unless --yes is passed.
brew install kops kops enforces dry-run previews by default before --yes and outputs -o json, making direct CLI usage safer and leaner than custom cloud MCP wrappers.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports -o json on kops get and create --dry-run, while update/rolling-update require explicit --yes to mutate.
- Supports
-o jsonongetand--dry-runoncreate cluster - Preview-by-default unless
--yesis explicitly passed
Requiring --yes for mutations is an excellent safety gate, though cloud instance rolling updates and delete cluster carry high billing and availability risk.
- Two-step preview then
--yesapply model
Single static Go binary via Homebrew or GitHub Releases on macOS, Linux, and Windows; requires cloud provider credentials and a state bucket.
- Cross-platform binary via
brew install kops
Manages full self-hosted cloud Kubernetes lifecycle, instance groups, and rolling node replacements.
- Full cloud cluster provisioning and rolling upgrades
Official Kubernetes SIG Cluster Lifecycle project (kubernetes/kops) under Apache-2.0.
- Official
kubernetes/kopsrepository
Extensive CLI reference docs at kops.sigs.k8s.io/cli/kops/ and clear --help.
- Generated CLI reference pages per subcommand
Security, Auth & Guardrails
Stores cluster state in a remote object store (KOPS_STATE_STORE, e.g., s3://... or gs://...), reads cloud SDK credentials (~/.aws), and exports cluster access to ~/.kube/config.
CLI is free (Apache-2.0); provisioned cloud VMs, load balancers, and state buckets incur cloud billing.
# kOps Agent Rules - ALWAYS run `kops update cluster` and `kops rolling-update cluster` WITHOUT `--yes` first to inspect the preview. - Pass `--name` and `--state` explicitly rather than relying on shell env defaults. - Never pass `--yes` on `kops update`, `rolling-update`, or `delete cluster` without explicit human approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
kops get cluster my-cluster.k8s.local -o json
Reads the stored cluster spec from KOPS_STATE_STORE in structured JSON.
kops update cluster --name my-cluster.k8s.local
Omitting --yes runs an implicit dry-run diff against the cloud provider without mutating infrastructure.
Controlled Writes & Previews
--dry-run kops create cluster --name=dev.k8s.local --zones=us-east-1a --dry-run -o json
Outputs the full cluster and instance-group specs in JSON without writing to KOPS_STATE_STORE.
Strengths for Agents
- + Safe-by-default preview mode:
update clusterandrolling-updatedo not mutate without--yes. - + Supports
-o jsonongetand--dry-run -o jsononcreate cluster. - + Backed by Kubernetes SIG Cluster Lifecycle with thorough CLI reference docs.
Caveats & Pitfalls
- ! Passing
--yestriggers real cloud provisioning, billing, and node drains/terminations. - ! Requires configuring an external
KOPS_STATE_STOREbucket and cloud IAM credentials.