tilt-dev / tilt-dev/tilt

You should be able to tell Tilt about your cluster if Tilt can't infer things

Open
#3,024 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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:

  1. Strict matching on the name of the cluster, like with minikube.
  2. Fuzzy matching on the name of the cluster, like with GKE
  3. Path to kubeconfig, like with k3d.
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.