kubernetes/minikube

Unable to --cleanup profile tunnel other than default profile

Open

#10,483 opened on Feb 15, 2021

View on GitHub
 (10 comments) (0 reactions) (0 assignees)Go (5,222 forks)batch import
area/tunnelhelp wantedkind/buglifecycle/frozenpriority/backlog

Repository metrics

Stars
 (31,799 stars)
PR merge metrics
 (Avg merge 12d 19h) (43 merged PRs in 30d)

Description

I cannot delete the tunnel created for a minikube profile other than the default profile.

Steps to reproduce the issue:

  1. Start a minikube profile, like minikube start -p foo
  2. Check that context is foo.
  3. Start tunnel, using minikube tunnel -p foo
  4. Stop tunnel, using Ctrl+C
  5. Try to delete tunnel, using minikube tunnel -c -p foo, or minikube -p foo -c, or minikube -c

Full output of failed command: The first 2 start the tunnel. The latter gives

🤷  Profile "minikube" not found. Run "minikube profile list" to view all profiles.
👉  To start a cluster, run: "minikube start"

Environment specs:

  • minikube version: v1.16.0 (did not see tunnel related changes in newer versions)
  • kernel 5.10 on Manjaro Linux

Contributor guide