apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: logspout
labels:
tier: monitoring
app: logspout
version: v1
spec:
template:
metadata:
labels:
name: logspout
spec:
hostPID: true
hostIPC: true
hostNetwork: true
containers:
- resources:
requests:
cpu: 0.15
securityContext:
privileged: true
env:
- name: SYSLOG_TAG
value: '{{ index .Container.Config.Labels "io.kubernetes.pod.namespace" }}[{{ index .Container.Config.Labels "io.kubernetes.pod.name" }}]'
- name: SYSLOG_HOSTNAME
value: 'ENVIRONMENT_PREFIX-{{ index .Container.Config.Labels "io.kubernetes.container.name" }}'
- name: ROUTE_URIS
value: syslog+tls://logs.papertrailapp.com:YOUR_PORT
image: gliderlabs/logspout
name: logspout
volumeMounts:
- name: log
mountPath: /var/run/docker.sock
volumes:
- name: log
hostPath:
path: /var/run/docker.sock
Thanks to Mark Marcantano on this thread:
https://github.com/gliderlabs/logspout/issues/90#issuecomment-267134551
Hope that helps! Let us know!![]() | Rodrigo Ardigó Privacy Officer | Community Team +55(48)9616-3556 |
--
You received this message because you are subscribed to a topic in the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kubernetes-dev/FvtV5_n2mNg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kubernetes-dev+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-dev@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/9d4d0ede-3598-4537-a993-b3141a02a77f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To post to this group, send email to kuberne...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/9d4d0ede-3598-4537-a993-b3141a02a77f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-dev+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-dev@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/CAFQoBT6fF2ee_d8rbdmJR6kim63zLi-Z-5Mnf0e0iF481KYHpw%40mail.gmail.com.