Rawan AlKhalawi:
hello
could you please help me to solve this issue in the lightning lab
Tej_Singh_Rana:
Hello, @Rawan AlKhalawi
Can you please check the logs of this pod?
Rawan AlKhalawi:
The problem with the command
/bin/sh: can’t open ‘while true; do date; sleep $TIME_FREQ;done > /opt/time/time-check.log’: No such file or directory
Tej_Singh_Rana:
can you please share your yaml file?
Tej_Singh_Rana:
It’s a multi container pod?
Rawan AlKhalawi:
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: time-check
name: time-check
namespace: dvl1987
spec:
containers:
- image: busybox
name: time-check
env:- name: TIME_FREQ
valueFrom:
configMapKeyRef:
name: time-config
key: TIME_FREQ
command: [ “/bin/sh”, “-c”, “while true; do date; sleep $TIME_FREQ;done > /opt/time/time-check.log” ]
volumeMounts: - name: v
mountPath: /opt/time
volumes:
- name: TIME_FREQ
- name: v
emptyDir: {}
Rawan AlKhalawi:
the problem with the -C