You should be able to tell Tilt about your cluster if Tilt can't infer things
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 10.1k
- Forks
- 413
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 6
Description
Right now Tilt uses some pretty simple heuristics to decide what kind of Kubernetes cluster you have:
- Strict matching on the name of the cluster, like with minikube.
- Fuzzy matching on the name of the cluster, like with GKE
- Path to kubeconfig, like with k3d.
- Fuzzy matching of path to kubeconfig, like with KIND.
Tilt uses this information to decide whether it can use an internal image registry, among other things. It's important for the Tilt user experience that we use an internal image registry whenever possible since that speeds up image push times.
Unfortunately it's easy for a user to inadvertently break Tilt's cluster inference code by renaming clusters or moving kube configs.
We should provide some sort of escape hatch to tell Tilt to consider cluster named X to be minikube/microk8s or something. I'm not entirely sure yet. I'm opening this issue to spur discussion.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the cluster-detection heuristics in internal/k8s/env.go, including the name and kubeconfig path matching described in the issue. Trace how the inferred cluster type affects internal image registry selection. The work is done when users have a documented escape hatch for overriding inference and the supported cases are verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100