AKS icon indicating copy to clipboard operation
AKS copied to clipboard

Cannot change default value for --service-node-port-range

Open tahovskym opened this issue 6 years ago • 17 comments

What happened:

I created AKS on Azure and tried to deploy application, but it failed with error:

The Service "th-syslog-svc01" is invalid: spec.ports[0].nodePort: Invalid value: 39001: provided port is not in the valid range. The range of valid ports is 30000-32767

In AKS doc I can see, that it is possible to set ... [--service-cidr] [--service-principal] ... but there is no option to specify --service-node-port-range to overwrite kubernetes apiserver default range 30000-32767

What you expected to happen: It will be good to have options to overwrite kube-apiserver default parameters

How to reproduce it: Create AKS on Azure and try deploy any service with nodePort out of the default node port range e.g.: create test namespaces in kubernetes cluster

kubectl create namespace test

and deploy try create service resource

apiVersion: v1
kind: Service
metadata:
  namespace: test
  name: th-syslog-svc01
  labels:
    product: th
    app: th-cth-syslog
spec:
  type: NodePort
  ports:
  - port: 9001
    nodePort: 39001
    name: mngport1

Anything else we need to know?:

Environment:

  • Kubernetes version: v1.13.9

tahovskym avatar Aug 14 '19 13:08 tahovskym

I am also facing this issue. I also cannot find any CLI commands that can change/update the setting of --service-node-port-range. And when create a AKS cluster using CLI command "az aks create ", there is also no option to change this setting . I can see the help in https://docs.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest#az-aks-create. Could someone from Microsoft helps to answer this question ?

Abbott-fu avatar Nov 29 '19 06:11 Abbott-fu

Action required from @Azure/aks-pm

github-actions[bot] avatar Jul 21 '20 01:07 github-actions[bot]

Action required from @Azure/aks-pm

ghost avatar Jul 26 '20 16:07 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Aug 05 '20 18:08 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Aug 20 '20 18:08 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Sep 05 '20 00:09 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Sep 20 '20 06:09 ghost

Action required from @Azure/aks-pm

ghost avatar Mar 30 '21 01:03 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Apr 14 '21 06:04 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Apr 29 '21 12:04 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar May 14 '21 18:05 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar May 30 '21 00:05 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Jun 14 '21 06:06 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Jun 29 '21 06:06 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar Jul 14 '21 12:07 ghost

Is this on the roadmap?

DavidSchott avatar Oct 19 '21 16:10 DavidSchott

Is this on the roadmap? Anyone know if it has been addressed?

mikeoleary avatar Jul 30 '24 10:07 mikeoleary

This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs within 7 days of this comment. @justindavies

This issue will now be closed because it hasn't had any activity for 7 days after stale. @tahovskym feel free to comment again on the next 7 days to reopen or open a new issue after that time if you still have a question/issue or suggestion.