Skip to content

Commit 0a1909c

Browse files
committed
sidecar container example use retry tail
1 parent 0a7a3e0 commit 0a1909c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

content/en/examples/application/deployment-sidecar.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
- name: logshipper
2626
image: alpine:latest
2727
restartPolicy: Always
28-
command: ['sh', '-c', 'touch /opt/logs.txt && tail -f /opt/logs.txt']
28+
command: ['sh', '-c', 'tail -F /opt/logs.txt']
2929
volumeMounts:
3030
- name: data
3131
mountPath: /opt

content/en/examples/application/job/job-sidecar.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
- name: logshipper
1717
image: alpine:latest
1818
restartPolicy: Always
19-
command: ['sh', '-c', 'touch /opt/logs.txt && tail -f /opt/logs.txt']
19+
command: ['sh', '-c', 'tail -F /opt/logs.txt']
2020
volumeMounts:
2121
- name: data
2222
mountPath: /opt

0 commit comments

Comments
 (0)