Skip to content

Instantly share code, notes, and snippets.

@pataha
Forked from gerred/logspout-ds.yaml
Last active May 18, 2019 16:20
Show Gist options
  • Save pataha/55c8bdef3e09ba944dc5f2f8f6f36861 to your computer and use it in GitHub Desktop.
Save pataha/55c8bdef3e09ba944dc5f2f8f6f36861 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
labels:
name: logspout
name: logspout
namespace: default
spec:
selector:
matchLabels:
name: logspout
template:
metadata:
labels:
name: logspout
spec:
containers:
- 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"
}}'
image: rpi-logspout
imagePullPolicy: IfNotPresent
args:
- "cloudwatch://auto"
name: logspout
resources:
limits:
memory: 64Mi
requests:
cpu: 150m
volumeMounts:
- mountPath: /var/run/docker.sock
name: log
restartPolicy: Always
volumes:
- hostPath:
path: /var/run/docker.sock
type: ""
name: log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment