-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Problem accessing kind from local #1875
Comments
Thanks, I can now access the api service from local, but when I start any application, my access problem persists. What do I have to do to use NodePort? |
your kind node has an IP that is reachable from its linux host. since you have a vagrant layer on top, you will need some passthrough. if you operated from within the vagrant node you wouldn't need to do this. |
note: the intended use case is that you run docker on your host, and then kind is accessible on that host. kind is aimed at local test clusters. we can make these things work, but I recommend avoiding the extra layers. |
I will use this in a test environment. I looked at the extra port mapping, but this opens a port. How can I allow a specific range of ports? How can I grant (30000-32767) or all tcp, udp access permissions cross-platform? |
I was able to run my applications with extraPortMappings, but I had to pre-set the ports as I would do different tests. After the following output, I got a few questions. Thank you. kindconfig.yaml
Docker Port Output
|
Again, kind is aimed at local clusters, where you would not need to. In order to map them through remotely this is one way to do it. The networking limitations here aren't KIND specific, this is just docker networking.
Yes. Docker port forwards are not something that can be added to a container while running, we have to recreate it. |
I installed an ubuntu server with Vagrant and successfully installed my cluster on this server.
Problem: I cannot access locally when I run any distribution and add nodeport. Also as kubectl cluster-info output
Kubernetes master is running at https://127.0.0.1:42252
KubeDNS is running at https://127.0.0.1:42252/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy
When I change the address 127.0.0.1 with the server address(for example 192.168.50.10) here, I cannot access it.
Test Command
kubectl create deployment test --image=nginx --port=80
kubectl expose deployment test --type=NodePort
I think the problem is caused by kind starting as localhost. How can I create a cluster with my server ip address instead of localhost?
The text was updated successfully, but these errors were encountered: