Files
website/content/pt/examples/admin/logging/two-files-counter-pod.yaml
Jhon Mike 6aa392535c Translate content/pt/docs/concepts/cluster-administration/logging.md into Portugues (#19573)
* translating doc kubelet logging

* adjustments to the logging doc in pt recommended in the CR
2020-03-15 14:44:35 -07:00

27 lines
437 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: counter
spec:
containers:
- name: count
image: busybox
args:
- /bin/sh
- -c
- >
i=0;
while true;
do
echo "$i: $(date)" >> /var/log/1.log;
echo "$(date) INFO $i" >> /var/log/2.log;
i=$((i+1));
sleep 1;
done
volumeMounts:
- name: varlog
mountPath: /var/log
volumes:
- name: varlog
emptyDir: {}