-
-
Notifications
You must be signed in to change notification settings - Fork 467
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
[HELP] 1 node(s) didn't have free ports for the requested pod ports #104
Comments
Hey there, thanks for filing this issue. |
Hey @iwilltry42
Warning FailedScheduling 82s (x7 over 5m18s) default-scheduler 0/1 nodes are available: 1 node(s) didn't have free ports for the requested pod ports. |
Alright, so it seems like one of the |
Can you provide more details on |
Any news on this @harshavardhanc ? |
experiencing same issue:
|
I'm pretty sure, that ports 80 and 443 are already taken by traefik. |
Sorry for late reply @iwilltry42 was OOO, I was using k3d create --name cluster_name |
So it works without traefik? Can I go ahead and close this issue then @harshavardhanc ? 👍 |
@iwilltry42 Any idea why this happens? I think it'll be good to have this in the doc, in case somebody get blocked. |
yes it works without traefik @iwilltry42 |
+1 @rjshrjndrn |
@rjshrjndrn yep, it's because of the Service Load Balancer, which reacts to services of Addition: Do both of you have a k3d cluster created with only a single node? (since the the controller tries to find a node, where the ports are free and obviously, there's none in a single node cluster, where traefik is already running and has the ports occupied) |
@iwilltry42 I always run a k3d k3d with one node and without traefik.
Why can't traefik run in the same node. I don't think there's any toleration for traefik to run in the master itself. Note: I tired the cluster with traefik and in one node, for me it works perfectly fine. |
@rjshrjndrn , I'm not sure, I understand you correctly there. |
Okay. Thank you @iwilltry42 for clarification. Makes sense now. |
Are there any questions left here or can I close this issue? 👍 |
You can close this issue @iwilltry42 |
anybody here. I have an issue and want discuss it |
hi @Umair841 is it something related to port mapping ? |
yes sir. actually, I am using host port mapping with the container port in pods so when my new pod spins up it does not get in a ready state because that port is already taken by another port .. so is there any way so that my new pod gets the host port dynamically while getting up ?? can we add a list of ports in PORT value in service ??? |
this is the error actually """"1 node(s) didn't have free ports for the requested pod ports, 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate. |
can you gimme the command you use to create the cluster. ``` This is my code. ``` |
Sir, actually I am new to k8s and this is the first take I have given to troubleshot the error and resolve this. apiVersion: v1
|
this is the deployment YAML actually. apiVersion: v1
|
is there any way to assign random host port automatically to the pod while it is getting up or can we give a list of ports as a value to the PORT in service ?? |
won't able to help you unless you provide proper yaml. And I asked the command which you used to create the k3d cluster.
Nope. If you're using linux, you should be able to use the loadbalancer ip from the host machine, as the docker network is shared. |
what thoughts you have sir on "dynamic port binding" ?? |
I don't think that's possible. |
Hi @Umair841 , I moved your question to the discussions feature of this repo, please continue over there to add more details: #551 |
with the new version of k3d, argument name changed - was able to make istio's ingressgateway working by passing |
On k3d version 5 flag is |
I'm trying to install istio in k3d cluster, but one of istio component(service load balancer) is failing to start with below error.
Warning FailedScheduling 42s (x6 over 2m59s) default-scheduler 0/1 nodes are available: 1 node(s) didn't have free ports for the requested pod ports.
Please help me in fixing this issue.
The text was updated successfully, but these errors were encountered: