-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathlog-exploration-api-deployment.yaml
54 lines (52 loc) · 1.35 KB
/
log-exploration-api-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: log-exploration-api
namespace: openshift-logging
labels:
app: log-exploration-api
spec:
replicas: 1
selector:
matchLabels:
app: log-exploration-api
template:
metadata:
labels:
app: log-exploration-api
spec:
containers:
- name: log-exploration-api-container
image: quay.io/openshift-logging/log-exploration-api:latest
env:
- name: ES_ADDR
value: https://elasticsearch.openshift-logging:9200
- name: ES_CERT
value: /etc/openshift/elasticsearch/secret/tls.crt
- name: ES_KEY
value: /etc/openshift/elasticsearch/secret/tls.key
- name: ES_TLS
value: "true"
ports:
- containerPort: 8080
livenessProbe:
httpGet:
path: /ready
port: 8080
initialDelaySeconds: 10
periodSeconds: 30
failureThreshold: 5
readinessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 3
periodSeconds: 3
volumeMounts:
- name: certificates
mountPath: /etc/openshift/elasticsearch/secret
volumes:
- name: certificates
secret:
secretName: fluentd
defaultMode: 420