1,报错如下
Warning: kubectl apply should be used on resource created by either kubectl create --save-config or kubectl apply
deployment "nginx-deployment" configured
是个警告,可以忽略,参考:https://my.oschina.net/u/2306127/blog/1647246
2.如何使用Kubernetes在一个yaml文件中设置多个命令?
command: ["/bin/sh","-c"] args: ["command one; command two && command three"]