Daemonset that monitors hostPath and uploads files to an s3 bucket.
Upload-to-s3 is monitoring a kubernetes volume of type hostPath using the inotify-tools.
Applications running on kubernetes can use hostPath modifying /proc/sys/kernel/core_pattern file to populate the directory with coredumps, see core manpage for details.
For consistency reasons we're using non-privileged user called gather with user id 1000.
The requirement for the LOCAL_PATH directory is to have at least r permissions for user with ID 1000.
AWS credentials (region, id, bucket_name and key) are passed as environment variables.
The daemonset is using a hardcoded nodeSelector to limit the daemonset deployment to a specific nodepool.
Implementation based on Handling Core-Dumps in Kubernetes Clusters in GCP.
See LICENSE file.
Repository: https://github.com/gathertown/upload-to-s3
Content type
Image
Digest
sha256:3de105759…
Size
42.2 MB
Last updated
7 months ago
docker pull gathertown/upload-to-s3:08e8d4cac