forked from pires/kubernetes-elk-cluster
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlogstash-controller.yaml
45 lines (45 loc) · 984 Bytes
/
logstash-controller.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
apiVersion: v1
kind: ReplicationController
metadata:
name: logstash
namespace: default
labels:
component: elk
role: logstash
spec:
replicas: 1
selector:
component: elk
role: logstash
template:
metadata:
labels:
component: elk
role: logstash
spec:
serviceAccount: elk
containers:
- name: logstash
image: larmog/logstash-k8s-armhf:2.2.0
env:
- name: KUBERNETES_TRUST_CERT
value: "true"
ports:
- containerPort: 5043
name: lumberjack
protocol: TCP
volumeMounts:
- mountPath: /logstash/certs
name: logstash-cert
- mountPath: /logstash/config
name: logstash-conf
volumes:
- secret:
secretName: logstash-ssl
name: logstash-cert
- secret:
secretName: logstash.conf
name: logstash-conf
- emptyDir:
medium: ""
name: "storage"