为了k8s和别的程序不起冲突,默认端口的范围是 30000-32767 ,我们可以手动的修改api-server的配置。
问题 The Service "svc-dot-2" is invalid: spec.ports[0].nodePort: Invalid value: 9002: provided port is not in the valid range. The range of valid ports is 30000-32767 修改api极速赛车1天赚1000方法 value: 9002: provided port is not in the valid range. The range of valid ports is 30000-32767 修改apiserver添加–service-node-port-range=1-65535” 这个配置,设定允许的端口
# Address range to use for servicesKUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=10.254.0.0/16 --service-node-port-range=1-65535"