Skip to content
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

使用--agentless --port-forward 参数无法运行 #118

Open
evaxiang opened this issue Aug 4, 2020 · 3 comments
Open

使用--agentless --port-forward 参数无法运行 #118

evaxiang opened this issue Aug 4, 2020 · 3 comments

Comments

@evaxiang
Copy link

evaxiang commented Aug 4, 2020

kubectl debug -n ns podname --agentless --port-forward
运行失败

Agent Pod info: [Name:debug-agent-pod-a0df1c92-d63c-11ea-a38e-fa163e0860d3, Namespace:default, Image:aylei/debug-agent:latest, HostPort:10027, ContainerPort:10027]
Waiting for pod debug-agent-pod-a0df1c92-d63c-11ea-a38e-fa163e0860d3 to run...
Error occurred while waiting for pod to run: pod ran to completion
error: pod ran to completion

查询pod状态:
Status: Failed
Reason: PodFitsHostPorts
Message: Pod Predicate PodFitsHostPorts failed

已关闭istio-injection,还是一样报错

@evaxiang
Copy link
Author

evaxiang commented Aug 4, 2020

尝试删除debug-agent-pod-XXX,重新执行--agentless --port-forward ,还是一样

@yaoyaoio
Copy link

yaoyaoio commented Dec 4, 2020

请问一下 你这个在mac下运行的么 还是linux?

@aylei
Copy link
Owner

aylei commented Dec 10, 2020

@evaxiang 可以检查一下对应 node 上 port 是否被占用

另外 --port-forward 模式可以做一个优化,不需要开 hostPort,完全绕开这个问题

#136

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants