tilt-dev / tilt-dev/tilt

ergonomically use local_resource to run a port-forward server

Open
#3,536 0 comments 0 reactions 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

A common question we get is "I have a pod running in Kubernetes that Tilt isn't monitoring the status of...can Tilt create a port-forwarder for this?"

You can do this today! But you have to flip how you frame the question. It's not "how do you tell tilt to connect to this pod". It's "a port-forwarder is a local server. how do i run a local server?"

The solution will look something like this:

local_resource('forwarder', serve_cmd='kubectl port-forward service/my-service 8000:8000')

I feel like there should be a more ergonomic way to figure this out on your own. A Tilt extension might be a good fit

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 with the local_resource entry point and its serve_cmd option, using the kubectl port-forward example in the issue as the behavior to understand. Determine whether a more ergonomic local-resource interface or a Tilt extension best expresses this workflow; done means users can create this port-forward server without needing to reframe the problem themselves.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes
Domain
devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.