mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-10 17:39:43 +00:00
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
apiVersion: extensions/v1beta1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: logspout-papertrail
|
|
spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: logspout-papertrail
|
|
spec:
|
|
hostPID: true
|
|
hostIPC: true
|
|
hostNetwork: true
|
|
containers:
|
|
- resources:
|
|
requests:
|
|
cpu: 0.15
|
|
limits:
|
|
memory: 500Mi
|
|
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: '{{ index .Container.Config.Labels "io.kubernetes.container.name" }}'
|
|
- name: ROUTE_URIS
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: papertrail-destination
|
|
key: papertrail-destination
|
|
- name: ALLOW_TTY
|
|
value: "true"
|
|
image: gliderlabs/logspout:master
|
|
name: logspout
|
|
volumeMounts:
|
|
- name: log
|
|
mountPath: /var/run/docker.sock
|
|
volumes:
|
|
- name: log
|
|
hostPath:
|
|
path: /var/run/docker.sock
|