Kubernetes - Passing multiple commands to the container

前端 未结 3 1671
北海茫月
北海茫月 2020-12-24 06:55

I want send multiple entrypoint commands to a Docker container in the command tag of kubernetes config file.

apiVersion: v1
kind: Pod
metadata:
         


        
3条回答
  •  一生所求
    2020-12-24 07:00

    use this command

    command: ["/bin/sh","-c"]
    args: ["command one; command two && command three"]
    

提交回复
热议问题