blob: 0304196d691ac11ee4b490bd15cb512fbe8d8b21 (
plain)
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
|
elasticsearch:
replicas: 1
esJavaOpts: "-Xmx1g -Xms1g"
volumeClaimTemplate:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
cpu: "1000m"
memory: "4Gi"
storage: 30Gi
labels:
app: elasticsearch-master
networkPolicy:
http:
enabled: true
transport:
enabled: true
protocol: http
httpPort: 9200
transportPort: 9300
logstash:
enabled: true
replicas: 1
volumeClaimTemplate:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 10Gi
logstashConfig:
logstash.yml: |
http.host: "0.0.0.0"
xpack.monitoring.elasticsearch.hosts: [ "http://elasticsearch-master:9200" ]
secretMounts:
- name: "elasticsearch-master-certs"
secretName: "elasticsearch-master-certs"
path: "/usr/share/logstash/config/elasticsearch-master-certs"
extraEnvs:
- name: "ELASTICSEARCH_USERNAME"
valueFrom:
secretKeyRef:
name: elasticsearch-master-credentials
key: username
- name: "ELASTICSEARCH_PASSWORD"
valueFrom:
secretKeyRef:
name: elasticsearch-master-credentials
key: password
logstashPipeline:
logstash.conf: |
input {
tcp {
port => 5044
codec => json
}
}
output {
elasticsearch {
hosts => ["http://elasticsearch-master.monitoring.svc.cluster.local:9200"]
cacert => /usr/share/logstash/config/elasticsearch-master-certs/ca.crt
user => '${ELASTICSEARCH_USERNAME}'
passwrod => '${ELASTICSEARCH_PASSWORD}'
index => "logstash-%{+YYYY.MM.dd}"
}
}
labels:
app.kubernetes.io/name: logstash
elasticsearch-master-http-client: "true"
|