-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
66 lines (66 loc) · 1.51 KB
/
deployment.yml
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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: p8s-elastic-exporter
spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
app: p8s-elastic-exporter
spec:
securityContext:
runAsNonRoot: true
runAsUser: 1000
containers:
- command:
- /bin/elasticsearch_exporter
- -es.uri=http://elasticsearch:9200
- -es.all=true
image: justwatch/elasticsearch_exporter:1.0.1
securityContext:
capabilities:
drop:
- SETPCAP
- MKNOD
- AUDIT_WRITE
- CHOWN
- NET_RAW
- DAC_OVERRIDE
- FOWNER
- FSETID
- KILL
- SETGID
- SETUID
- NET_BIND_SERVICE
- SYS_CHROOT
- SETFCAP
readOnlyRootFilesystem: true
livenessProbe:
httpGet:
path: /health
port: 9108
initialDelaySeconds: 30
timeoutSeconds: 10
name: p8s-elastic-exporter
ports:
- containerPort: 9108
readinessProbe:
httpGet:
path: /health
port: 9108
initialDelaySeconds: 10
timeoutSeconds: 10
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 25m
memory: 64Mi
restartPolicy: Always