Comments (1)
variety of error messages observed:
(1) trying with no deployment or service existing
./bin/windows/amd64/ktunnel.exe expose proxy --node-selector-tags kubernetes.io/os=linux -r 3000:3000 --namespace default
time="2024-08-07T11:24:42-07:00" level=info msg="Exposed service's cluster ip is: 10.152.184.144"
time="2024-08-07T11:24:42-07:00" level=info msg="waiting for deployment to be ready"
time="2024-08-07T11:24:42-07:00" level=info msg="ProgressDeadlineInSeconds is currently 600s. It may take this long to detect a deployment failure."
time="2024-08-07T11:24:43-07:00" level=info msg="deployment \"proxy\" successfully rolled out\n"
time="2024-08-07T11:24:43-07:00" level=info msg="port forwarding to https://appmana-cluster-03-k.appmana.com/api/v1/namespaces/default/pods/proxy-59dd6ff9b7-bq5dz/portforward"
time="2024-08-07T11:24:43-07:00" level=info msg="Waiting for port forward to finish"
time="2024-08-07T11:24:43-07:00" level=info msg="Forwarding from 127.0.0.1:28688 -> 28688\nForwarding from [::1]:28688 -> 28688\n"
INFO[2024-08-07 11:24:43.385] starting tcp tunnel from source 3000 to target localhost:3000
E0807 11:24:43.399449 34272 portforward.go:409] an error occurred forwarding 28688 -> 28688: error forwarding port 28688 to pod f73624df91aebbb4a4c272f7f6cef6ca7d892303d064a994c73f9444bc1140e1, uid : failed to execute portforward in network namespace "/var/run/netns/cni-d22a23d3-c16b-5bb2-b322-9cd147d88a21": failed to connect to localhost:28688 inside namespace "f73624df91aebbb4a4c272f7f6cef6ca7d892303d064a994c73f9444bc1140e1", IPv4: dial tcp4 127.0.0.1:28688: connect: connection refused IPv6 dial tcp6: address localhost: no suitable address found
ERRO[2024-08-07 11:24:43.399] Error sending init tunnel request: rpc error: code = Unavailable desc = connection error: desc = "error reading server preface: EOF"
time="2024-08-07T11:25:06-07:00" level=info msg="Got exit signal, closing client tunnels"
(2) trying after failure observed above
$ ./bin/windows/amd64/ktunnel.exe expose proxy --node-selector-tags kubernetes.io/os=linux -r 3000:3000 --namespace default
time="2024-08-07T11:25:09-07:00" level=info msg="Exposed service's cluster ip is: 10.152.184.144"
time="2024-08-07T11:25:09-07:00" level=info msg="waiting for deployment to be ready"
time="2024-08-07T11:25:09-07:00" level=info msg="ProgressDeadlineInSeconds is currently 600s. It may take this long to detect a deployment failure."
at this stage, hitting Ctrl+C shows time="2024-08-07T11:25:55-07:00" level=info msg="Got exit signal, closing client tunnels"
with a hang
$ kubectl logs deployments/proxy
INFO[2024-08-07 18:24:43.406] Starting to listen on port 28688
everything appears to be healthy
(3) trying to recover from failure observed above
$ kubectl delete deployments/proxy services/proxy
deployment.apps "proxy" deleted
service "proxy" deleted
great, everything is deleted. let's rerun
$ ./bin/windows/amd64/ktunnel.exe expose proxy --node-selector-tags kubernetes.io/os=linux -r 3000:3000 --namespace default
time="2024-08-07T11:27:26-07:00" level=info msg="Exposed service's cluster ip is: 10.152.184.199"
time="2024-08-07T11:27:26-07:00" level=info msg="waiting for deployment to be ready"
time="2024-08-07T11:27:26-07:00" level=info msg="ProgressDeadlineInSeconds is currently 600s. It may take this long to detect a deployment failure."
hmm, but it's healthy:
$ kubectl logs deployments/proxy
INFO[2024-08-07 18:27:27.572] Starting to listen on port 28688
okay, let's Ctrl+C again
time="2024-08-07T11:27:51-07:00" level=info msg="Got exit signal, closing client tunnels"
and now we hang
from ktunnel.
Related Issues (20)
- Error sending init tunnel request: rpc error: code = Unavailable desc = connection closed HOT 1
- Port forwarding error with `ktunnel inject` HOT 8
- Release 1.5.2 is published but https://quay.io/repository/omrikiei/ktunnel:v1.5.2 is not HOT 2
- Allow forwarding to more than just `localhost` from the client but any host visible from the client? HOT 1
- ktunnel does not reconnect to cluster after interrupted internet connection HOT 3
- ktunnel inject fails HOT 1
- New version of ktunnel HOT 3
- `ktunnel expose` does not allow for custom request/limits HOT 2
- --reuse is misleading
- ktunnel broke sometime around 1.5 HOT 2
- Ktunnel uses unexpected pods
- `ktunnel expose` deadlocks when it fails to listen for port forwarding and ignores SIGINT HOT 1
- Pod Tolerations
- latest version on brew is 1.4.7 and not 1.4.8 HOT 1
- ARM64 image for Krew plugin HOT 6
- Support injection for applications with statefulset but no deployment. HOT 6
- Release plan after v1.4.8 HOT 2
- Why do I have 2 versions of a deployment? HOT 1
- ktunnel inject starts 2 new sessions and then closes 1 of them, is this correct? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ktunnel.