Kubernetes(K8S)中command和args区别

image

 

使用方法参考下图:

Image Entrypoint    Image Cmd    Container command    Container args    Command run
[/ep-1]    [foo bar]    <not set>    <not set>    [ep-1 foo bar]
[/ep-1]    [foo bar]    [/ep-2]    <not set>    [ep-2]
[/ep-1]    [foo bar]    <not set>    [zoo boo]    [ep-1 zoo boo]
[/ep-1]    [foo bar]    [/ep-2]    [zoo boo]    [ep-2 zoo boo]

 

posted @ 2025-10-23 11:00  滴滴滴  阅读(2)  评论(0)    收藏  举报