【发布时间】:2016-02-26 12:18:17
【问题描述】:
在这个官方文档中,它可以在 yaml 配置文件中运行命令:
apiVersion: v1
kind: Pod
metadata:
name: hello-world
spec: # specification of the pod’s contents
restartPolicy: Never
containers:
- name: hello
image: "ubuntu:14.04"
env:
- name: MESSAGE
value: "hello world"
command: ["/bin/sh","-c"]
args: ["/bin/echo \"${MESSAGE}\""]
如果我想运行多个命令,怎么办?
【问题讨论】:
标签: yaml kubernetes