Comments (14)
I'm also getting this on 1.19.3 (which is what @damienburke is also running above -- he was looking at his go version).
Edit: I upgraded to 1.20 and it works now
from kubectl-debug.
I was getting the same for 1.19.7 on windows. Updated to 1.21.1 to fix it.
from kubectl-debug.
Could you please provide the output of kubectl version
?
from kubectl-debug.
Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.2", GitCommit:"bb9ffb1654d4a729bb4cec18ff088eacc153c239", GitTreeState:"clean", BuildDate:"2018-08-08T16:31:16Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"12+", GitVersion:"v1.12.6-aliyun.1", GitCommit:"8cb561c", GitTreeState:"", BuildDate:"2019-04-22T11:34:20Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"}
from kubectl-debug.
That make sense, kubectl version prior to 1.12
should use kubectl-debug
directly instead.
$ kubectl-debug -h
from kubectl-debug.
so because of my kubectl version is too old ?
from kubectl-debug.
$ kubectl-debug --namespace test pcss-back-base-78667dfbfd-zcnmv -a
Agent Pod info: [Name:debug-agent-pod-116086a8-a452-11e9-908b-a8667f14fb5d, Namespace:default, Image:aylei/debug-agent:latest, HostPort:10027, ContainerPort:10027]
Waiting for pod debug-agent-pod-116086a8-a452-11e9-908b-a8667f14fb5d to run...
Start deleting agent pod pcss-back-base-78667dfbfd-zcnmv
error execute remote, error sending request: Post http://10.0.0.21:10027/api/v1/debug?command=%5B%22bash%22%5D&container=docker%3A%2F%2Ff73eb31fbfdbe3a5ee4647d12b3eb491401534d7400bad818f26d1a0960d6c4d&image=nicolaka%2Fnetshoot%3Alatest: dial tcp 10.0.0.21:10027: connect: operation timed out
error: error sending request: Post http://10.0.0.21:10027/api/v1/debug?command=%5B%22bash%22%5D&container=docker%3A%2F%2Ff73eb31fbfdbe3a5ee4647d12b3eb491401534d7400bad818f26d1a0960d6c4d&image=nicolaka%2Fnetshoot%3Alatest: dial tcp 10.0.0.21:10027: connect: operation timed out
from kubectl-debug.
No, you should enable agentless mode by --agentless
if you have not instead the debug-agent
as in advance as stated in README
from kubectl-debug.
If you don't mind, I will translate the issue title to English so that users who are experiencing the same problem can find this issue more easily.
from kubectl-debug.
OK no problem
from kubectl-debug.
the pod get my host ip is host internal ip , how can change ?
from kubectl-debug.
Use --port-forward
flag to enable port-forward mode, which is host ip agnostic
from kubectl-debug.
thanks a lot
from kubectl-debug.
am getting this error on kubectl version 1.15.2..
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T12:50:19Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"darwin/amd64"}
from kubectl-debug.
Related Issues (20)
- Plugin stuck creating exec stream
- plan to support sts
- Error: No such image HOT 2
- Error: No such image: nicolaka/netshoot:latest HOT 18
- The default agent image version should be coordinated with the plugin
- Do not use HostPort when using --port-forward
- Agent pod failed HOT 4
- not output command result when excute no interactive command
- `RegistrySecretName` inf config file don't work HOT 2
- Errors with containerd runtime HOT 2
- cannot get the debug docker image No such image: docker.io/nicolaka/netshoot:latest HOT 2
- I can't join some pods HOT 1
- k8s.io/api/admissionregistration/v1alpha1: module k8s.io/api@latest found (v0.20.5), but does not contain package k8s.io/api/admissionregistration/v1alpha1 HOT 1
- aliyun-exporter使用时出现错误
- If my target pod has multiple contianers? HOT 1
- Seems the kubectl has build-in debug sub command, it conflicts with it HOT 2
- What is the reason behind `CGO_ENABLED=0`?
- parse namespace error HOT 1
- 项目是结束维护了么,好久没看到更新 HOT 2
- run error when use containerd runtime
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 kubectl-debug.