-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
nodeSelector ingress-ready: "true" caused ingress-nginx-controller can't be schedule to any node on KIND cluster #8874
Comments
/triage-accepted Hi, yes, I was able to reproduce this problem.
|
/triage accepted |
And if I remove that nodeSelector, it installs and runs ;
So we need a PR to remove that @Volatus , do you have any interest in looking at this. Thanks |
I'm not really sure that removing the
As you can see, they add the extra label. Because otherwise no port if forwared to your Docker container (and you're not able to use the Ingress), so you will face another problem. You'll need to setup extra port mappings to your host, so port 80 in their example is exposed. I just faced this same issue and then saw this GitHub issue, but since I've got it running now (without removing the label) I thought I'll post an update. |
@TomKeur I checked and yes, you are absolutely right. So now it looks like we need to improve docs. |
@TomKeur Many Thanks for your help. |
@auxo86 , that is not related to ingress-nginx-controller. First aspect ;
Second aspect:
Running a haproxy or other pod etc is out of scope of this discussion. |
/remove-kind bug |
@longwuyuan Hmmm...should we close this issue now? |
If your problem is solved then please close but if you think there is some improvement you can make in the documentation, then kindly help and submit a PR. |
@longwuyuan Maybe we should add some solution for existing kind k8s cluster? |
The solution has existed for a long long long time. Its documented in kind documentation and I already pointed out how this project uses kind with a config file. Check links and messages above. The problem here is that there is no easy and obvious documentation, in this project, to explain the use of kind cluster with a config file and that yaml manifest this prject creates. The documentation exists in the kind website and it is expected that users will be aware of that and refer the documentaion on kind website. But for new users it may not be obvious. See this ingress-nginx/build/dev-env.sh Line 70 in 72a01bb
I will edit the documentation on this project website to explain this. |
@auxo86 , I think its best that users refer to the kind documentation https://kind.sigs.k8s.io/docs/user/ingress/#ingress-nginx and we don't need to change the docs in this project, because ;
/close |
@longwuyuan: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What happened:
nodeSelector ingress-ready: "true" caused ingress-nginx-controller can't be scheduled to any node on KIND cluster.
What you expected to happen:
Install NGINX Ingress controller successfully.
NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.):
1.3.0
Kubernetes version (use
kubectl version
):Kubernetes version : 1.24.2
Environment:
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):
Install tools:
Cloud provider or hardware configuration: local kind cluster
OS (e.g. from /etc/os-release): kindest/node:v1.24.2
Install tools: kind
Basic cluster related info:
cluster with 1 control and one worker nodes
How was the ingress-nginx-controller installed:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
Current State of the controller:
Error message is listed below:
How to reproduce this issue:
start a new kind cluster with 1.24.2
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
Anything else we need to know:
Comment codeSelector ingress-ready: "true" can solve this issue.
The text was updated successfully, but these errors were encountered: