{"id":13500408,"url":"https://github.com/tilt-dev/ctlptl","last_synced_at":"2026-06-04T04:00:41.689Z","repository":{"id":37485822,"uuid":"304708734","full_name":"tilt-dev/ctlptl","owner":"tilt-dev","description":"Making local Kubernetes clusters fun and easy to set up","archived":false,"fork":false,"pushed_at":"2026-04-24T16:01:45.000Z","size":946,"stargazers_count":706,"open_issues_count":15,"forks_count":43,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-05-29T17:06:48.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tilt-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-10-16T18:30:00.000Z","updated_at":"2026-05-28T11:42:33.000Z","dependencies_parsed_at":"2026-01-03T09:07:59.243Z","dependency_job_id":null,"html_url":"https://github.com/tilt-dev/ctlptl","commit_stats":{"total_commits":240,"total_committers":25,"mean_commits":9.6,"dds":0.625,"last_synced_commit":"f6d366475cf537a9ba71e8da6cefd6c84d974170"},"previous_names":[],"tags_count":80,"template":false,"template_full_name":null,"purl":"pkg:github/tilt-dev/ctlptl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilt-dev%2Fctlptl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilt-dev%2Fctlptl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilt-dev%2Fctlptl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilt-dev%2Fctlptl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tilt-dev","download_url":"https://codeload.github.com/tilt-dev/ctlptl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilt-dev%2Fctlptl/sbom","scorecard":{"id":885398,"data":{"date":"2025-08-11","repo":{"name":"github.com/tilt-dev/ctlptl","commit":"ed6a3f888eba0c13d3cf6a9c0f0b74533b8c82fe"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.7,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 4/26 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":6,"reason":"4 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.8.42 not signed: https://api.github.com/repos/tilt-dev/ctlptl/releases/220163623","Warn: release artifact v0.8.41 not signed: https://api.github.com/repos/tilt-dev/ctlptl/releases/219379800","Warn: release artifact v0.8.40 not signed: https://api.github.com/repos/tilt-dev/ctlptl/releases/207572814","Warn: release artifact v0.8.39 not signed: https://api.github.com/repos/tilt-dev/ctlptl/releases/200540337","Warn: release artifact v0.8.38 not signed: https://api.github.com/repos/tilt-dev/ctlptl/releases/195952813","Warn: release artifact v0.8.42 does not have provenance: https://api.github.com/repos/tilt-dev/ctlptl/releases/220163623","Warn: release artifact v0.8.41 does not have provenance: https://api.github.com/repos/tilt-dev/ctlptl/releases/219379800","Warn: release artifact v0.8.40 does not have provenance: https://api.github.com/repos/tilt-dev/ctlptl/releases/207572814","Warn: release artifact v0.8.39 does not have provenance: https://api.github.com/repos/tilt-dev/ctlptl/releases/200540337","Warn: release artifact v0.8.38 does not have provenance: https://api.github.com/repos/tilt-dev/ctlptl/releases/195952813"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: containerImage not pinned by hash: .circleci/Dockerfile:12: pin your Docker image by updating golang:1.24-bookworm to golang:1.24-bookworm@sha256:e617461712dbebf8768e10c1a5deab2833d67d2b692894cb8f4f0a3c19a8efb5","Warn: containerImage not pinned by hash: hack/Dockerfile:13: pin your Docker image by updating debian:bookworm-slim to debian:bookworm-slim@sha256:b1a741487078b369e78119849663d7f1a5341ef2768798f7b7406c4240f86aef","Warn: containerImage not pinned by hash: test/docker-desktop/Dockerfile:3: pin your Docker image by updating golang:1.24-alpine to golang:1.24-alpine@sha256:c8c5f95d64aa79b6547f3b626eb84b16a7ce18a139e3e9ca19a8c078b85ba80d","Warn: containerImage not pinned by hash: test/k3d/Dockerfile:3: pin your Docker image by updating golang:1.24-alpine to golang:1.24-alpine@sha256:c8c5f95d64aa79b6547f3b626eb84b16a7ce18a139e3e9ca19a8c078b85ba80d","Warn: containerImage not pinned by hash: test/kind/Dockerfile:3: pin your Docker image by updating golang:1.24-alpine to golang:1.24-alpine@sha256:c8c5f95d64aa79b6547f3b626eb84b16a7ce18a139e3e9ca19a8c078b85ba80d","Warn: containerImage not pinned by hash: test/minikube/Dockerfile:3: pin your Docker image by updating golang:1.24-alpine to golang:1.24-alpine@sha256:c8c5f95d64aa79b6547f3b626eb84b16a7ce18a139e3e9ca19a8c078b85ba80d","Info:   0 out of   6 containerImage dependencies pinned","Info:   1 out of   1 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T09:50:01.141Z","repository_id":37485822,"created_at":"2025-08-24T09:50:01.141Z","updated_at":"2025-08-24T09:50:01.141Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33888302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T22:00:59.285Z","updated_at":"2026-06-04T04:00:41.662Z","avatar_url":"https://github.com/tilt-dev.png","language":"Go","funding_links":[],"categories":["Go","others"],"sub_categories":[],"readme":"# ctlptl\n\n[![Build Status](https://circleci.com/gh/tilt-dev/ctlptl/tree/main.svg?style=shield)](https://circleci.com/gh/tilt-dev/ctlptl)\n[![GoDoc](https://godoc.org/github.com/tilt-dev/ctlptl?status.svg)](https://pkg.go.dev/github.com/tilt-dev/ctlptl)\n\nWant to mess around with Kubernetes, but don't want to spend an ocean on\nhardware?\n\nMaybe you need a `ctlptl`.\n\n## What is ctlptl?\n\n`ctlptl` (pronounced \"cattle patrol\") is a CLI for declaratively setting up\nlocal Kubernetes clusters.\n\nInspired by `kubectl` and\n[ClusterAPI's](https://github.com/kubernetes-sigs/cluster-api) `clusterctl`, you\ndeclare your local cluster with YAML and use `ctlptl` to set it up.\n\n## How do I install it?\n\nInstall your cluster of choice: [Docker for\nDesktop](https://www.docker.com/products/docker-desktop),\n[Kind](https://kind.sigs.k8s.io/), \n[k3d](https://k3d.io/) or\n[Minikube](https://minikube.sigs.k8s.io/). Then run:\n\n### Homebrew (Mac/Linux)\n\n```\nbrew install tilt-dev/tap/ctlptl\n```\n\n### Scoop (Windows)\n\n```\nscoop bucket add tilt-dev https://github.com/tilt-dev/scoop-bucket\nscoop install ctlptl\n```\n\n### Go install\n\n```\ngo install github.com/tilt-dev/ctlptl/cmd/ctlptl@latest\n```\n\n### Alternative Options\n\nIf automatic installers aren't your cup of tea, check out the [installation\nappendix](INSTALL.md) for more options.\n\n## How do I use it?\n\n`ctlptl` supports 4 major commands:\n\n- `ctlptl get` - see all running clusters\n- `ctlptl create cluster [product]` - create a cluster and make it the current `kubectl` context\n- `ctlptl apply -f cluster.yaml` - ensure a cluster exists, or create one\n- `ctlptl delete -f cluster.yaml` - delete a cluster and its state\n\n### Examples\n\n#### Docker for Mac: Enable Kubernetes and set 4 CPU\n\nCreate:\n\n```\nctlptl docker-desktop open\nctlptl create cluster docker-desktop --min-cpus=4\n```\n\nor ensure exists:\n\n```\ncat \u003c\u003cEOF | ctlptl apply -f -\napiVersion: ctlptl.dev/v1alpha1\nkind: Cluster\nproduct: docker-desktop\nminCPUs: 4\nEOF\n```\n\n#### Docker for Mac: Reset and shutdown Kubernetes\n\n```\nctlptl delete cluster docker-desktop\nctlptl docker-desktop quit\n```\n\n#### KIND: with a built-in registry at a random port\n\nCreate:\n\n```\nctlptl create cluster kind --registry=ctlptl-registry\n```\n\nor ensure exists:\n\n```\ncat \u003c\u003cEOF | ctlptl apply -f -\napiVersion: ctlptl.dev/v1alpha1\nkind: Cluster\nproduct: kind\nregistry: ctlptl-registry\nEOF\n```\n\nThen fetch the URL to push images to with:\n\n```\nctlptl get cluster kind-kind -o template --template '{{.status.localRegistryHosting.host}}'\n```\n\n#### KIND: with a built-in registry at a pre-determined port\n\nCreate:\n\n```\nctlptl create registry ctlptl-registry --port=5005\nctlptl create cluster kind --registry=ctlptl-registry\n```\n\nor ensure exists:\n\n```\ncat \u003c\u003cEOF | ctlptl apply -f -\napiVersion: ctlptl.dev/v1alpha1\nkind: Registry\nname: ctlptl-registry\nport: 5005\n---\napiVersion: ctlptl.dev/v1alpha1\nkind: Cluster\nproduct: kind\nregistry: ctlptl-registry\nEOF\n```\n\n#### K3D: with a built-in registry at a pre-determined port\n\nCreate:\n\n```\nctlptl create registry ctlptl-registry --port=5005\nctlptl create cluster k3d --registry=ctlptl-registry\n```\n\nor ensure exists:\n\n```\ncat \u003c\u003cEOF | ctlptl apply -f -\napiVersion: ctlptl.dev/v1alpha1\nkind: Registry\nname: ctlptl-registry\nport: 5005\n---\napiVersion: ctlptl.dev/v1alpha1\nkind: Cluster\nproduct: k3d\nregistry: ctlptl-registry\nEOF\n```\n\n#### Minikube: with a built-in registry at Kubernetes v1.18.8\n\nCreate:\n\n```\nctlptl create cluster minikube --registry=ctlptl-registry --kubernetes-version=v1.18.8\n```\n\nor ensure exists:\n\n```\ncat \u003c\u003cEOF | ctlptl apply -f -\napiVersion: ctlptl.dev/v1alpha1\nkind: Cluster\nproduct: minikube\nregistry: ctlptl-registry\nkubernetesVersion: v1.18.8\nEOF\n```\n\n#### Docker for Mac: Limit to 1 CPU and Disable Kubernetes\n\n```\nctlptl docker-desktop set vm.resources.cpus 1\nctlptl docker-desktop set kubernetes.enabled false\n```\n\n#### More\n\nFor more details, see:\n\n- Example configurations under [./examples](./examples)\n- Complete CLI docs under [./docs](./docs/ctlptl.md)\n- Cluster API reference under [pkg.go.dev](https://pkg.go.dev/github.com/tilt-dev/ctlptl/pkg/api#Cluster)\n\n## Why did you make this?\n\nAt [Tilt](https://tilt.dev/), we want to make Kubernetes a nice environment for local dev.\n\nWe found ourselves spending too much time helping teams debug misconfigurations in their dev environment.\n\nWe wrote docs like [Choosing a local dev\ncluster](https://docs.tilt.dev/choosing_clusters.html) and example repos like\n[kind-local](https://github.com/tilt-dev/kind-local),\n[minikube-local](https://github.com/tilt-dev/minikube-local), and\n[k3d-local](https://github.com/tilt-dev/k3d-local-registry) to help people get set up.\n\n`ctlptl` is a culmination of what we've learned.\n\n## Features\n\n### Current\n\n- Docker for Mac\n- Docker for Windows\n- [KIND](https://kind.sigs.k8s.io/) and [KIND with a registry](https://kind.sigs.k8s.io/docs/user/local-registry/)\n- [Minikube](https://minikube.sigs.k8s.io/) and Minikube with a registry\n- [K3D](https://k3d.io/) with a registry\n- Creating a cluster on a Remote Docker Host (useful in CI environments like [CircleCI](https://circleci.com/docs/2.0/building-docker-images/))\n- Allocating CPUs\n\n### Future Work\n\n- Microk8s\n- Rancher Desktop\n- Podman\n- Minikube on Hyperkit\n- Allocating Memory\n- Allocating Storage\n\n## Community\n\n`ctlptl` is a work in progress!\n\nWe welcome [contributions](CONTRIBUTING.md) from the Kubernetes community to help make this better.\n\nWe expect everyone -- users, contributors, followers, and employees alike -- to abide by our [**Code of Conduct**](CODE_OF_CONDUCT.md).\n\n## Goals\n\n- To support common local cluster setup operations, like create, delete, and reset\n\n- To interoperate well with all local Kubernetes solutions, including `docker-desktop`, `kind`, `minikube`, `k3d`, or `microk8s`\n\n- To connect other resources to a local cluster, like image registries, storage, and CPU/memory\n\n- To help infra engineers manage a consistent dev environment\n\n- To encourage standards that enable interop between devtools, like [KEP 1755](https://github.com/kubernetes/enhancements/tree/master/keps/sig-cluster-lifecycle/generic/1755-communicating-a-local-registry)\n\n## Non-Goals\n\n- `ctlptl` is NOT a Kubernetes setup approach that competes with `kind` or `minikube`, but rather complements these tools.\n\n- `ctlptl` is NOT intended to help you setup a remote cluster, or a remote dev sandbox. If you want to declaratively set up prod clusters, check out [`clusterapi`](https://cluster-api.sigs.k8s.io/).\n\n## Privacy\n\n`ctlptl` sends anonymized usage statistics, so we can improve it on every platform. Opt out with `ctlptl analytics opt out`.\n\n## License\n\nCopyright 2022 Docker, Inc.\n\nLicensed under [the Apache License, Version 2.0](LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftilt-dev%2Fctlptl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftilt-dev%2Fctlptl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftilt-dev%2Fctlptl/lists"}