website/content/en/docs/tasks/inject-data-application/commands.yaml

14 lines
265 B
YAML
Raw Normal View History

2017-08-30 12:45:01 +00:00
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