aylei / aylei/kubectl-debug

工具镜像使用自定义镜像,报连接镜像仓库错误

Open
#74 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.3k
Forks
303
PR merge metrics
No merged PRs in 30d

Description

使用kubectl debug pod_name -n ns-* --image harbor.*.com/base/bianque:v1.0.1
pulling image harbor.*.com/base/bianque:v1.0.1...
message: error execute remote, Internal error occurred: error attaching to container: Error response from daemon: pull access denied for harbor.*.com/base/bianque, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
已经在agent-ds文件中添加imagessecret 尝试debug的服务器也登录了该HARBOR 手动直接拉该镜像也无问题

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the kubectl debug command with the custom Harbor image, then inspect how the agent-ds file's imagessecret setting is used during the remote image pull. Compare this behavior with a direct authenticated pull on the debug server; done means kubectl debug can pull and attach using the custom image.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
cli, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.