-
Notifications
You must be signed in to change notification settings - Fork 829
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
Karmada api server using port range between 30000-32768 #3857
Comments
/remove-kind bug |
A quickly map is add a param of karmadactl to work for kube-apiserver args of service-node-port-range. But increasing numbers of karmadactl parameters can be a maintenance challenge and can be ugly too. That is the reason i create the issue of #3464 The other map is use karmada operator to deploy karmada. |
Good idea. I think one reason is that |
Thank you for your feedback, while, I think that may not be a problem~ Actually, Karmada provided ➜ ✗ karmadactl init -h
...
-p, --port=32443:
Karmada apiserver service node port
... However, if you execute I0729 17:37:40.444168 86887 deploy.go:372] Create karmada ApiServer Deployment
error: unable to create Service: Service "karmada-apiserver" is invalid: spec.ports[0].nodePort: Invalid value: 3443: provided port is not in the valid range. The range of valid ports is 30000-32767 Why? Haha, yike21 has given the answer in above comment. Actually, So, if you can modify the config of your raw apiVersion: v1
kind: Pod
metadata:
......
name: kube-apiserver-karmada-host-control-plane
namespace: kube-system
......
spec:
containers:
- command:
- kube-apiserver
......
- --service-cluster-ip-range=100.173.0.0/16
- --service-node-port-range=1-65535 ## look at this line
...... Then, you will get out of the port range restriction (Besides, the raw |
Hi @gauravitdevops Could you please confirm if the solution from @chaosi-zju works for you? |
What happened:while installing karmada, the apiserver is using the port range which is added in services as 30000-32768 which is non-compliant as per our organization. Looking forward to manage these ports through values.yaml/ or any other method would be helpful if can be done that way.
What you expected to happen: Port range/ ports to be in users hand to change as per requirement.
How to reproduce it (as minimally and precisely as possible):Installing karmadactl and initializing it using karmadactl init command.
Environment:
kubectl-karmada version
orkarmadactl version
):-Kubernetes version- 1.25
The text was updated successfully, but these errors were encountered: