-
Notifications
You must be signed in to change notification settings - Fork 23
/
openshift.yaml
93 lines (93 loc) · 2.07 KB
/
openshift.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
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: stanza-metadata
namespace: default
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
# kubernetes versions before 1.8.0 should use rbac.authorization.k8s.io/v1beta1
metadata:
name: stanza-metadata
namespace: default
rules:
- apiGroups: [""]
resources:
- pods
- namespaces
verbs: ["get", "list"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: stanza-metadata
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: stanza-metadata
subjects:
- kind: ServiceAccount
name: stanza-metadata
namespace: default
---
kind: ConfigMap
metadata:
name: stanza-config
namespace: default
apiVersion: v1
data:
config.yaml: |2-
pipeline:
- type: aks
container_log_path: /var/log/containers/*
kubelet_journald_log_path: /var/log/journal
start_at: beginning
- type: drop_output
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: stanza
namespace: default
spec:
selector:
matchLabels:
name: stanza
template:
metadata:
labels:
name: stanza
spec:
serviceAccountName: stanza-metadata
containers:
- name: stanza
image: observiq/stanza:dev
imagePullPolicy: Always
resources:
limits:
memory: "250Mi"
cpu: 100m
requests:
memory: "250Mi"
cpu: 100m
volumeMounts:
- mountPath: /stanza_home/config.yaml
name: config
subPath: config.yaml
- mountPath: /var/log
name: varlog
- mountPath: /var/lib/docker/containers
name: dockerlogs
restartPolicy: Always
terminationGracePeriodSeconds: 5
volumes:
- name: varlog
hostPath:
path: /var/log
- name: dockerlogs
hostPath:
path: /var/lib/docker/containers
- name: config
configMap:
name: stanza-config