Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minikube tunnel should have background mode #3647

Open
ctcampbell opened this issue Feb 9, 2019 · 35 comments
Open

minikube tunnel should have background mode #3647

ctcampbell opened this issue Feb 9, 2019 · 35 comments
Assignees
Labels
area/tunnel Support for the tunnel command help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/backlog Higher priority than priority/awaiting-more-evidence.

Comments

@ctcampbell
Copy link

It would be useful if Minikube tunnel had a background/daemon mode. It would also be nice if it could be started whenever Minikube starts without having to do anything.

@tstromberg tstromberg added kind/feature Categorizes issue or PR as related to a new feature. priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. labels Feb 11, 2019
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label May 12, 2019
@tstromberg tstromberg added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. area/tunnel Support for the tunnel command r/2019q2 Issue was last reviewed 2019q2 and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels May 22, 2019
@ajit555db
Copy link

minikube tunnel &> /dev/null &

@sharifelgamal sharifelgamal added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. and removed r/2019q2 Issue was last reviewed 2019q2 labels Sep 20, 2019
@tstromberg
Copy link
Contributor

tstromberg commented Sep 23, 2019

I don't know that we need to reinvent our own shell backgrounding process, but perhaps it would be nice to incorporate something so that minikube start --tunnel could work.

This is also related to some UI ideas we've had.

@priyawadhwa
Copy link

If anybody is interested in implementing minikube start --tunnel, please feel free to assign yourself to this issue by commenting /assign.

@medyagh
Copy link
Member

medyagh commented Apr 25, 2020

this issue is still open for anyone interested to do this.

@medyagh medyagh added priority/backlog Higher priority than priority/awaiting-more-evidence. and removed priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. labels Apr 25, 2020
@ghost
Copy link

ghost commented May 24, 2020

@medyagh Far from being an expert on Go but I think this might be a start #8266

@medyagh
Copy link
Member

medyagh commented Feb 18, 2021

I would accept any PR that adds this feature

@m-lima
Copy link

m-lima commented Mar 4, 2021

minikube tunnel &> /dev/null &

In general, I don't like this solution because it simply redirects the stdout and stderr and detaches the process; closing the session would still kill the tunnel. Not actually a solution for what OP wanted.
But that's besides the point I'm here to comment about: it seems like when you kill minikube tunnel with a kill -INT the ssh forwards survive the death of the parent process. The signal is captured by cmd/minikube/cmd/tunnel.go, but the ssh sessions persist.
I noticed this happening as late as 18e215fed113d3ad1bc1797860e303cae0772373

@gtmanfred
Copy link

I would also love this feature.

@AviMoto
Copy link

AviMoto commented Sep 30, 2021

+1 to this feature

@codingluke
Copy link

👍 for this feature!

@warent
Copy link

warent commented Feb 3, 2022

yes please! don't let this go stale

@hongliang5316
Copy link

+1

1 similar comment
@gautambaghel
Copy link

+1

@Merteg
Copy link

Merteg commented May 10, 2022

/assign
I need this and I think I know something about Go )

@renato-r-cardoso-alb
Copy link

/assign

@warent
Copy link

warent commented May 27, 2022

FYI for anyone wondering I found a way to accomplish something similar and more permanently using loadbalancers.

First, you want to get the IP address to the cluster using minikube profile list, and then plug that into your k8s service using the externalIPs property, like so:

---
apiVersion: v1
kind: Service
metadata:
  name: frontend
  namespace: default
spec:
  type: LoadBalancer
  selector:
    frontend: web
  ports:
    - protocol: "TCP"
      # Port accessible inside cluster
      port: 3000
      # Port to forward to inside the pod
      targetPort: 3000
      # Port accessible outside cluster
      nodePort: 31000
  externalIPs:
    - 192.168.94.2

This will allow you to access your service in the host machine: 192.168.94.2:31000

@surajkrishan
Copy link

much needed feature

@MrEyratnz
Copy link

I would love to see this feature added

  • run in the background
  • option on minikube start to start the tunnel automatically

@shanginn
Copy link

I would love to see that feature too.

but for now I'm just starting the tunnel inside a screen

maybe slightly better than &> /dev/null & ¯_(ツ)_/¯

@entrymon
Copy link

entrymon commented Sep 2, 2023

I would love this feature too, earlier minikube tunnel use to remain forever but now it cleans up automatically and --cleanup=false also does not work

@AndrewEastwood
Copy link

+1 to this

@dgoldssfo
Copy link

+1

Since all of us with ARM-based Macs use minikube tunnel now, maybe that gives this request a little higher priority than when the issue was first logged 4 years ago.

@lukasholzer
Copy link

+1 super painful currently

@szsascha
Copy link

+1

@itAvgur
Copy link

itAvgur commented Feb 25, 2024

+1
I really need this feature for every day using

@odi89
Copy link

odi89 commented Mar 24, 2024

+1
Appreaciate the effort of this project=)

@sam-fiddis-rozettatech
Copy link

+1

7 similar comments
@AdminMavericka
Copy link

+1

@freeyob
Copy link

freeyob commented Jul 14, 2024

+1

@ktn1234
Copy link

ktn1234 commented Jul 17, 2024

+1

@specialkapa
Copy link

+1

@callyourai
Copy link

+1

@ekneg54
Copy link

ekneg54 commented Dec 4, 2024

+1

@seanxue
Copy link

seanxue commented Dec 17, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tunnel Support for the tunnel command help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/backlog Higher priority than priority/awaiting-more-evidence.
Projects
None yet
Development

No branches or pull requests