Permalink
d9ebf48 Jan 3, 2017
@megastef @marlinhares
39 lines (38 sloc) 970 Bytes
# Kubernetes 1.1.8 and 1.2
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: sematext-agent
spec:
template:
metadata:
labels:
app: sematext-agent
spec:
nodeSelector: {}
hostNetwork: true
dnsPolicy: "ClusterFirst"
restartPolicy: "Always"
containers:
- name: sematext-agent
image: sematext/sematext-agent-docker:latest
imagePullPolicy: "Always"
env:
- name: SPM_TOKEN
value: "YOUR_SPM_TOKEN"
- name: LOGSENE_TOKEN
value: "YOUR_LOGSENE_TOKEN"
volumeMounts:
- mountPath: /var/run/docker.sock
name: docker-sock
- mountPath: /etc/localtime
name: localtime
securityContext:
privileged: true
volumes:
- name: docker-sock
hostPath:
path: /var/run/docker.sock
- name: localtime
hostPath:
path: /etc/localtime