Kubernetes minikube apiserver.service-node-port-range不';我不喜欢用逗号分隔的端口列表

Kubernetes minikube apiserver.service-node-port-range不';我不喜欢用逗号分隔的端口列表,kubernetes,minikube,Kubernetes,Minikube,我可以配置apiserver.service node port rangeextra-config,端口范围为10000-19000,但是当我指定一个逗号分隔的端口列表时,如1708013306minkube将不会启动,它将引导循环并出现以下错误 Posting this as community wiki, please feel free and provide more details and findings about this topic. The only one place w

我可以配置
apiserver.service node port range
extra-config,端口范围为
10000-19000
,但是当我指定一个逗号分隔的端口列表时,如
1708013306
minkube将不会启动,它将引导循环并出现以下错误

Posting this as community wiki, please feel free and provide more details and findings about this topic.

The only one place where we can find information about comma separated list of ports and port ranges is minikube documentation:

Increasing the NodePort range

By default, minikube only exposes ports 30000-32767. If this does not work for >you, you can adjust the range by using:

minikube start --extra-config=apiserver.service-node-port-range=1-65535

This flag also accepts a comma separated list of ports and port ranges.

On the other hand from the k8s documentation:

--service-node-port-range <a string in the form 'N1-N2'> Default: 30000-32767

I have tested this with k8s v 1.20 and comma separated list of ports also doesn't work for me. Kube-apiserver accept two approaches:

set parses a string of the form "value", "min-max", or "min+offset", inclusive at both ends

--service-node-port-range=30100-31000   # using "min-max" approach
--service-node-port-range=25000+100     # using "min+offset" approach (valid ranges will be 25000-25100)

将此作为社区wiki发布,请随时提供有关此主题的更多详细信息和发现

我们唯一可以找到有关端口和端口范围的逗号分隔列表的信息的地方是:

增加节点端口范围 默认情况下,minikube仅公开端口30000-32767。如果这对>不起作用,可以使用以下方法调整范围:

minikube启动--extra-config=apiserver.service节点端口范围=1-65535

此标志还接受以逗号分隔的端口和端口范围列表

另一方面,从以下方面:

--服务节点端口范围

  • 您是否遵循了任何文档或教程?除了此信息之外,
    此标志还接受以逗号分隔的端口和端口范围列表。
    找到的端口和端口范围与k8s官员的非常不同
    --服务节点端口范围默认值:30000-32767
    ,因此kube apiserver似乎不提供配置多个服务节点端口范围的可能性