rancher / kim

In ur kubernetes, buildin ur imagez
Apache License 2.0
326 stars 19 forks source link

Error while dialing dial tcp 10.0.2.15:1233: i/o timeout #88

Open devopstales opened 2 years ago

devopstales commented 2 years ago

I use the latsest kim binary (v0.1.0-beta.7). I installed on a k8s 1.20.13 cluster. The install looks good (logs above), but when i try to list images is get this error: Error while dialing dial tcp 10.0.2.15:1233: i/o timeout

klf builder-r4rds -c buildkit
time="2021-12-05T09:41:16Z" level=warning msg="using host network as the default"
time="2021-12-05T09:41:16Z" level=info msg="found worker \"c0bb48tm9n3r3rrc5ru1s91rn\", labels=map[org.mobyproject.buildkit.worker.executor:containerd org.mobyproject.buildkit.worker.hostname:alma8 org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/386]"
time="2021-12-05T09:41:16Z" level=info msg="found 1 workers, default=\"c0bb48tm9n3r3rrc5ru1s91rn\""
time="2021-12-05T09:41:16Z" level=warning msg="currently, only the default worker can be used."
time="2021-12-05T09:41:16Z" level=warning msg="TLS is disabled for unix:///run/buildkit/buildkitd.sock"
time="2021-12-05T09:41:16Z" level=info msg="running server on /run/buildkit/buildkitd.sock"
time="2021-12-05T09:41:16Z" level=info msg="running server on [::]:1234"

klf builder-r4rds -c agent

No log in agent. The ip in the error 10.0.2.15 is the ip of the pod:

kgp -o wide
NAME            READY   STATUS    RESTARTS   AGE   IP          NODE    NOMINATED NODE   READINESS GATES
builder-r4rds   2/2     Running   0          25m   10.0.2.15   alma8   <none>           <none>

Obviously my host can not connect to the pod ip. What is a best practice here. Is there an option to run kim with loadbalancer service, or an ingress? how can I configure the cli where to connect? For example to connect to a port forward to localhost.

dweomer commented 2 years ago

@devopstales please see example usage of kim builder install --endpoint-addr flag for port-forwarding scenarios, as discussed in https://github.com/rancher/kim/issues/85#issuecomment-951259006