0 points

Defining a Command with Arguments


dashboard

Sun Nov 29 2020 18:40:35 GMT+0000 (UTC)

Posted 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_copy Copy