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

Port validation error on specifying tcp/udp or range of ports #13809

Closed
tyabu12 opened this issue Mar 18, 2022 · 0 comments · Fixed by #13812
Closed

Port validation error on specifying tcp/udp or range of ports #13809

tyabu12 opened this issue Mar 18, 2022 · 0 comments · Fixed by #13812
Assignees
Labels
kind/regression Categorizes issue or PR as related to a regression from a prior release. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@tyabu12
Copy link
Contributor

tyabu12 commented Mar 18, 2022

What Happened?

$ minikube start fails on specifying tcp, udp or range ports option.
e.g. 127.0.0.1:8080:8080/tcp, 127.0.0.1:8080:8080/udp, 127.0.0.1:8080-8081:8080-8081.

This problem appears to have been introduced on minikube v1.24.0 (#12233).

Attach the log file

v1.25.2

127.0.0.1:8080:8080/tcp
$ minikube start --driver=docker --ports=127.0.0.1:8080:8080/tcp
😄  minikube v1.25.2 on Darwin 12.2.1 (arm64)
✨  Using the docker driver based on user configuration

❌  Exiting due to MK_USAGE: Sorry, one of the ports provided with --ports flag is not valid [127.0.0.1:8080:8080/tcp]
127.0.0.1:8080:8080/udp
$ minikube start --driver=docker --ports=127.0.0.1:8080:8080/udp
😄  minikube v1.25.2 on Darwin 12.2.1 (arm64)
✨  Using the docker driver based on user configuration

❌  Exiting due to MK_USAGE: Sorry, one of the ports provided with --ports flag is not valid [127.0.0.1:8080:8080/udp]
127.0.0.1:8080-8081:8080-8081
$ minikube start --ports=127.0.0.1:8080-8081:8080-8081
😄  minikube v1.25.2 on Darwin 12.2.1 (arm64)
✨  Automatically selected the docker driver

❌  Exiting due to MK_USAGE: Sorry, one of the ports provided with --ports flag is not valid [127.0.0.1:8080-8081:8080-8081]

v1.23.2

127.0.0.1:8080:8080/tcp
$ minikube start --driver=docker --ports=127.0.0.1:8080:8080/tcp
😄  minikube v1.23.2 on Darwin 12.2.1 (arm64)
✨  Using the docker driver based on user configuration
👍  Starting control plane node minikube in cluster minikube
🚜  Pulling base image ...
🔥  Creating docker container (CPUs=2, Memory=4000MB) ...
🐳  Preparing Kubernetes v1.22.2 on Docker 20.10.8 ...
    ▪ Generating certificates and keys ...
    ▪ Booting up control plane ...
    ▪ Configuring RBAC rules ...
🔎  Verifying Kubernetes components...
    ▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟  Enabled addons: storage-provisioner, default-storageclass
🏄  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default

$ docker ps -a
CONTAINER ID   IMAGE                                 COMMAND                  CREATED          STATUS          PORTS                                                                                                                                                            NAMES
0790c0fb3393   gcr.io/k8s-minikube/kicbase:v0.0.27   "/usr/local/bin/entr…"   34 seconds ago   Up 33 seconds   127.0.0.1:8080->8080/tcp, 127.0.0.1:62515->22/tcp, 127.0.0.1:62511->2376/tcp, 127.0.0.1:62513->5000/tcp, 127.0.0.1:62514->8443/tcp, 127.0.0.1:62512->32443/tcp   minikube
127.0.0.1:8080:8080/udp
$ minikube start --driver=docker --ports=127.0.0.1:8080:8080/udp
😄  minikube v1.23.2 on Darwin 12.2.1 (arm64)
✨  Using the docker driver based on user configuration
👍  Starting control plane node minikube in cluster minikube
🚜  Pulling base image ...
🔥  Creating docker container (CPUs=2, Memory=4000MB) ...
🐳  Preparing Kubernetes v1.22.2 on Docker 20.10.8 ...
    ▪ Generating certificates and keys ...
    ▪ Booting up control plane ...
    ▪ Configuring RBAC rules ...
🔎  Verifying Kubernetes components...
    ▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟  Enabled addons: storage-provisioner, default-storageclass
🏄  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default

$ docker ps -a
CONTAINER ID   IMAGE                                 COMMAND                  CREATED          STATUS          PORTS                                                                                                                                                            NAMES
36324c4cefa2   gcr.io/k8s-minikube/kicbase:v0.0.27   "/usr/local/bin/entr…"   33 seconds ago   Up 32 seconds   127.0.0.1:8080->8080/udp, 127.0.0.1:61975->22/tcp, 127.0.0.1:61976->2376/tcp, 127.0.0.1:61978->5000/tcp, 127.0.0.1:61979->8443/tcp, 127.0.0.1:61977->32443/tcp   minikube
127.0.0.1:8080-8081:8080-8081
$ minikube start --driver=docker --ports=127.0.0.1:8080-8081:8080-8081
😄  minikube v1.23.2 on Darwin 12.2.1 (arm64)
✨  Using the docker driver based on user configuration
👍  Starting control plane node minikube in cluster minikube
🚜  Pulling base image ...
🔥  Creating docker container (CPUs=2, Memory=4000MB) ...
🐳  Preparing Kubernetes v1.22.2 on Docker 20.10.8 ...
    ▪ Generating certificates and keys ...
    ▪ Booting up control plane ...
    ▪ Configuring RBAC rules ...
🔎  Verifying Kubernetes components...
    ▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟  Enabled addons: storage-provisioner, default-storageclass
🏄  Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default

$ docker ps -a
CONTAINER ID   IMAGE                                 COMMAND                  CREATED              STATUS              PORTS                                                                                                                                                                      NAMES
69d5e11105ed   gcr.io/k8s-minikube/kicbase:v0.0.27   "/usr/local/bin/entr…"   About a minute ago   Up About a minute   127.0.0.1:8080-8081->8080-8081/tcp, 127.0.0.1:61085->22/tcp, 127.0.0.1:61087->2376/tcp, 127.0.0.1:61090->5000/tcp, 127.0.0.1:61091->8443/tcp, 127.0.0.1:61089->32443/tcp   minikube

Operating System

macOS (Default)

Driver

Docker

@tyabu12 tyabu12 changed the title Port validation error on specifying tcp/udp or range ports Port validation error on specifying tcp/udp or range of ports Mar 18, 2022
@spowelljr spowelljr added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. kind/regression Categorizes issue or PR as related to a regression from a prior release. labels Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/regression Categorizes issue or PR as related to a regression from a prior release. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants