Files
website/docs/tasks/inject-data-application/commands.yaml
T
Suraj Deshmukh 11b0b64ab9 fix(pod restartPolicy): add restartPolicy to pods (#5817)
Some pods were missing `restartPolicy` which caused them to
go in `CrashLoopBackoff`, so adding `restartPolicy` as
`OnFailure`.
2017-10-09 17:25:34 -07:00

14 lines
265 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: command-demo
labels:
purpose: demonstrate-command
spec:
containers:
- name: command-demo-container
image: debian
command: ["printenv"]
args: ["HOSTNAME", "KUBERNETES_PORT"]
restartPolicy: OnFailure