-
Notifications
You must be signed in to change notification settings - Fork 20
/
swisnap-agent-daemonset.yaml
105 lines (105 loc) · 2.92 KB
/
swisnap-agent-daemonset.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: swisnap-agent-ds
labels:
daemon: swisnap-agent-ds
spec:
selector:
matchLabels:
daemon: swisnap-agent-ds
updateStrategy:
type: RollingUpdate
template:
metadata:
name: swisnap-agent-ds
labels:
daemon: swisnap-agent-ds
spec:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
containers:
- name: swisnap-agent-ds
image: solarwinds/solarwinds-snap-agent-docker:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 21413
protocol: TCP
env:
- name: APPOPTICS_HOSTNAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: APPOPTICS_TOKEN
valueFrom:
secretKeyRef:
name: appoptics-token
key: APPOPTICS_TOKEN
optional: true
- name: SOLARWINDS_TOKEN
valueFrom:
secretKeyRef:
name: solarwinds-token
key: SOLARWINDS_TOKEN
optional: true
- name: LOGGLY_TOKEN
valueFrom:
secretKeyRef:
name: loggly-token
key: LOGGLY_TOKEN
optional: true
- name: PAPERTRAIL_TOKEN
valueFrom:
secretKeyRef:
name: papertrail-token
key: PAPERTRAIL_TOKEN
optional: true
- name: PAPERTRAIL_HOST
valueFrom:
secretKeyRef:
name: papertrail-publisher-settings
key: PAPERTRAIL_HOST
optional: true
- name: PAPERTRAIL_PORT
valueFrom:
secretKeyRef:
name: papertrail-publisher-settings
key: PAPERTRAIL_PORT
optional: true
envFrom:
- configMapRef:
name: swisnap-host-configmap
volumeMounts:
- name: proc
mountPath: /host/proc
readOnly: true
- name: cgroup
mountPath: /sys/fs/cgroup
resources:
limits:
cpu: 200m
memory: 512Mi
requests:
cpu: 100m
memory: 256Mi
livenessProbe:
httpGet:
path: /v1/plugins
port: 21413
initialDelaySeconds: 10
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /v1/plugins
port: 21413
initialDelaySeconds: 10
timeoutSeconds: 5
volumes:
- name: proc
hostPath:
path: /proc
- name: cgroup
hostPath:
path: /sys/fs/cgroup