-
Notifications
You must be signed in to change notification settings - Fork 134
/
ocp-omsagent.yaml
54 lines (54 loc) · 1.34 KB
/
ocp-omsagent.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
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: oms
spec:
selector:
matchLabels:
name: omsagent
template:
metadata:
labels:
name: omsagent
agentVersion: 1.4.0-45
dockerProviderVersion: 10.0.0-25
spec:
nodeSelector:
zone: default
serviceAccount: omsagent
containers:
- image: "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:microsoft-oms-latest"
imagePullPolicy: Always
name: omsagent
env:
- name: WSID
value: <WSID>
- name: KEY
value: <KEY>
securityContext:
privileged: true
ports:
- containerPort: 25225
protocol: TCP
- containerPort: 25224
protocol: UDP
volumeMounts:
- mountPath: /var/run/docker.sock
name: docker-sock
- mountPath: /var/lib/docker/containers
name: containerlog-path
livenessProbe:
exec:
command:
- /bin/bash
- -c
- ps -ef | grep omsagent | grep -v "grep"
initialDelaySeconds: 60
periodSeconds: 60
volumes:
- name: docker-sock
hostPath:
path: /var/run/docker.sock
- name: containerlog-path
hostPath:
path: /var/lib/docker/containers