KK Naing:
Hi Team, I would be appreciate if you could help to validate why failed?
apiVersion: batch/v1
kind: Job
metadata:
name: whalesay
spec:
template:
spec:
containers:
- name: whalesay
image: docker/whalesay
command: ["cowsay", "I am going to ace CKAD"]
restartPolicy: Never
backoffLimit: 6
completions: 10
KK Naing:
same outcome if i change with follows:-
containers:
- name: whalesay
image: docker/whalesay
command: ["cowsay"]
args: ["I am going to ace CKAD"]
Tej_Singh_Rana:
Did you try ?
command: ["/bin/sh", "-c", "cowsay I am going to ace CKAD"]
Tej_Singh_Rana:
Please use symbol “!” in the statement end.
KK Naing:
Like that ?
command: ["/bin/sh", "-c", "cowsay I am going to ace CKAD""!"]
Tej_Singh_Rana:
Like this:
command: ["/bin/sh", "-c", "cowsay I am going to ace CKAD!"]
KK Naing:
Thanks buddy. it work. would you mind to share why need to add symbol? or share some link to read up…
Tej_Singh_Rana:
> Thanks buddy. it work. would you mind to share why need to add symbol? or share some link to read up…
There is no special reason. We added as per written in the question. You didn’t notice in the question? @KK Naing