-
Notifications
You must be signed in to change notification settings - Fork 44
/
sample-k8s-deamon-deployment.yaml
67 lines (67 loc) · 1.86 KB
/
sample-k8s-deamon-deployment.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
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: crawler
labels:
tier: monitoring
app: crawler
version: v1
spec:
template:
metadata:
labels:
name: crawler
spec:
hostPID: true
hostIPC: true
hostNetwork: true
containers:
- resources:
requests:
cpu: 0.15
securityContext:
privileged: true
# crawler image path from image registry
image: cloudviz/agentless-system-crawler
name: crawler
command: ["python2.7", "crawler.py",
"--crawlmode", "OUTCONTAINER",
"--url", "file:///tmp/test.csv",
"--features", "os,disk",
"--frequency", "60",
"--environment", "kubernetes" ]
volumeMounts:
- name: crawler-cgroup
mountPath: /cgroup
readOnly: true
- name: crawler-fs-cgroup
mountPath: /sys/fs/cgroup
readOnly: true
- name: docker-home
mountPath: /var/lib/docker
readOnly: true
- name: docker-sock
mountPath: /var/run/docker.sock
- name: crawler-output
mountPath: /tmp
- name: sas-secrets
mountPath: /etc/sas-secrets
volumes:
- name: crawler-cgroup
hostPath:
path: /cgroup
- name: crawler-fs-cgroup
hostPath:
path: /sys/fs/cgroup
- name: docker-home
hostPath:
path: /var/lib/docker
- name: docker-sock
hostPath:
path: /var/run/docker.sock
- name: crawler-output
hostPath:
path: /tmp
- name: sas-secrets
secret:
secretName: "bluemix-secret"