Defining a Command with Arguments

PHOTO EMBED

Sun Nov 29 2020 18:40:35 GMT+0000 (Coordinated Universal Time)

Saved by @ankity09 #aws,ckad

apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: null
  labels:
    run: mypod
  name: mypod
spec:
  containers:
  - command: ["/bin/sh"]
    args: ["-c", "while true; do date; sleep 10; done"]
    image: busybox
    name: mypod
    resources: {}
  dnsPolicy: ClusterFirst
  restartPolicy: Never
status: {}
content_copyCOPY