forked from framsouza/eck-ready-for-production
-
Notifications
You must be signed in to change notification settings - Fork 0
/
heartbeat.yaml
40 lines (40 loc) · 1.06 KB
/
heartbeat.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
apiVersion: beat.k8s.elastic.co/v1beta1
kind: Beat
metadata:
name: heartbeat
spec:
type: heartbeat
version: 8.0.0
elasticsearchRef:
name: elasticsearch
config:
heartbeat.monitors:
- type: tcp
schedule: '@every 5s'
hosts: ["elasticsearch-es-http.default.svc:9200"]
name: elasticsearch-tcp
- type: http
id: elasticsearch-cert
name: elasticsearch-cert
hosts: ["https://elasticsearch-es-http.default.svc:9200"]
schedule: '@every 5s'
ssl:
certificate_authorities: ['/mnt/elastic-internal/elasticsearch-certs/ca.crt']
schedule: '@every 5s'
username: elastic
password: ${ELASTIC_PASSWORD}
deployment:
replicas: 1
podTemplate:
spec:
securityContext:
runAsUser: 0
containers:
- name: heartbeat
image: docker.elastic.co/beats/heartbeat:8.0.0
env:
- name: ELASTIC_PASSWORD
valueFrom:
secretKeyRef:
name: elasticsearch-es-elastic-user
key: elastic