-
Notifications
You must be signed in to change notification settings - Fork 57
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
Validate privileges in Windows environments #192
Comments
/assign |
I just hit this :) |
Am I supposed to run cloud-provider-kind with |
Reading the subsequent comment in the linked thread - it requires |
Though I'm unable to curl the Service LB IP - it doesn't seem to work hmm. |
you should not need to enable-lb-portmapping, that is a flag for environments that does not allow to create direct routing to the containers so people can still find the portmaps in the host and use them, but was added just as a special option for these edge cases #126, read the description of that PR to understand the multiple combinations of deployments that can exist If you want to use the Service LB IP you can not set that flag cloud-provider-kind/cmd/app.go Lines 136 to 144 in 134f5be
|
Understood. Then it must be something different. I think my WSL2 gets into a state where
I'm running it with Using I think what's happening is the docker container that the cloud provider creates (envoy) isn't being cleaned up properly. I find I have to reboot wsl to get out of this state. |
check with |
ok so I have $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e9bb90cb3a4f kindest/node:v1.32.0 "/usr/local/bin/entr…" 2 days ago Up 2 days 127.0.0.1:45823->6443/tcp kind-control-plane
9952c14547c6 envoyproxy/envoy:v1.30.1 "/docker-entrypoint.…" 2 days ago Up 2 days 0.0.0.0:59093->80/tcp, 0.0.0.0:59092->443/tcp, 0.0.0.0:59091->10000/tcp kindccm-RPWYB6HN42ZHBDLSU4MXX34VENT34LIWFJOVYVFS docker logs shows the health check succeeding
The K8s Service has interestingly has a different IP
cloud-provider-kind logs show
|
Docker inspect on the envoy container shows a different IP address
|
I think the repro steps might then be
|
The IP is correct, the node seems to have this config
The cloud-provider-kind spawns a new loadbalancer that has IP 172.18.0.2 and add that IP as external IP of the Service
So you can poll 172.18.0.2:80 and the envoy container forward to 172.18.0.3:30213 (sae for the 443 port to 30851) @dprotaso before step 3. does it work? docker may change the IPs of containers on stop starts, so I would not be surprised something is carrying an old value, the part I'm puzzled is
if you have a repro ping me in slack and we can screenshare |
Originally posted by @d2461795341 in #189
It will be good to add a check for windows environments to validate there is enough privileges or fail , same as we do for Mac
cloud-provider-kind/cmd/app.go
Lines 74 to 77 in bdc116d
The text was updated successfully, but these errors were encountered: