A tiny sidecar image for tailing files. Useful for when your containerised
application logs to multiple files that you'd like to be able to retrieve
using something like kubectl logs.
/bin/tail, that's it. This image is built from scratch and the tail
binary is copied from busybox.
You can. This was built so I could have a sidecar image with a very minimal attack surface. Busybox is fantastically small (nearly as small as this), but it still includes a whole lot of binaries that I don't need for my logging sidecars.
Add tails as a sidecar to your application pods:
containers:
- name: myapp
image: myapp
ports:
- containerPort: 80
volumeMounts:
- mountPath: /opt/myapp/logs
name: log-volume
- name: http-logs
image: kierranm/tails
args:
- -f
- /logs/http.txt
volumeMounts:
- mountPath: /logs
name: log-volume
- name: error-logs
image: kierranm/tails
args:
- -f
- /logs/error.txt
volumeMounts:
- mountPath: /logs
name: log-volume
Content type
Image
Digest
Size
701.9 kB
Last updated
over 6 years ago
docker pull kierranm/tails