bitsondatadev / trino-getting-started

Apache License 2.0
234 stars 97 forks source link

error "Create a tunnel" step of "Testing Trino Tardigrade" #24

Closed dataders closed 1 year ago

dataders commented 1 year ago

doing the below step, given here

kubectl port-forward \
$(kubectl get pods --namespace default -l "app=trino,release=tardigrade-kubernetes-cluster,component=coordinator" -o jsonpath="{.items[0].metadata.name}") \
8080:8080

i get the following output

Forwarding from 127.0.0.1:8080 -> 8080
Forwarding from [::1]:8080 -> 8080
Handling connection for 8080
E0321 14:57:48.078495   43212 portforward.go:400] an error occurred forwarding 8080 -> 8080: error forwarding port 8080 to pod f4cc9a90e201ef657ec2c80be42033bd89dda260b1d857de2a7bc6f48fa6c1ac, uid : failed to execute portforward in network namespace "/var/run/netns/cni-f022d74c-45fa-923d-dd8b-15de73458c6b": failed to connect to localhost:8080 inside namespace "f4cc9a90e201ef657ec2c80be42033bd89dda260b1d857de2a7bc6f48fa6c1ac", IPv4: dial tcp4 127.0.0.1:8080: connect: connection refused IPv6 dial tcp6: address localhost: no suitable address found 

here's the error broken down

E0321 14:57:48.078495   43212 portforward.go:400]
an error occurred forwarding 8080 -> 8080:
error forwarding port 8080 to pod f4cc9a90e201ef657ec2c80be42033bd89dda260b1d857de2a7bc6f48fa6c1ac,
uid: failed to execute portforward in network namespace  "/var/run/netns/cni-f022d74c-45fa-923d-dd8b-15de73458c6b":
failed to connect to localhost:8080 inside namespace "f4cc9a90e201ef657ec2c80be42033bd89dda260b1d857de2a7bc6f48fa6c1ac",
IPv4: dial tcp4 127.0.0.1:8080: connect: connection refused IPv6 dial
tcp6: address localhost: no suitable address found 
bitsondatadev commented 1 year ago

I worked this out with Anders offline. There was an small config issue we had to resolve.