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

指令问题 #2

Closed
v04007 opened this issue Apr 21, 2024 · 4 comments
Closed

指令问题 #2

v04007 opened this issue Apr 21, 2024 · 4 comments

Comments

@v04007
Copy link

v04007 commented Apr 21, 2024

4.9 更新的暂停与恢复 中 kk set image deploy hellok8s-go-http=leigg/hellok8s:v2 执行失败

@chaseSpace
Copy link
Owner

提供执行现场截图,以及相关日志,例如kk describe po $POD_ID 的Events部分

@chaseSpace
Copy link
Owner

如无后续,issue将在两天后关闭。

@v04007
Copy link
Author

v04007 commented Apr 22, 2024

kubectl version: v1.28.2

根据文档中的命令: kubectl set image deploy hellok8s-go-http=leigg/hellok8s:v2
执行得到:error: resource(s) were provided, but no name was specified
切换为:kubectl set image deploy hellok8s-go-http hellok8s=leigg/hellok8s:v2
执行得到:deployment.apps/hellok8s-go-http image updated

执行kubectl rollout undo deployment hellok8s-go-http --to-revision=N
执行得到: error: invalid argument "N" for "--to-revision" flag: strconv.ParseInt: parsing "N": invalid syntax
See 'kubectl rollout undo --help' for usage.
N切换为具体版本号执行成功

@chaseSpace
Copy link
Owner

感谢反馈,第一处应该是一个命令错误,你切换的是正确的;第二处命令中的N是个代号,执行时需要替换为具体的修订号(已追加说明)。

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

2 participants