forked from pires/kubernetes-elasticsearch-cluster
-
Notifications
You must be signed in to change notification settings - Fork 20
/
graylog-node.yaml
55 lines (55 loc) · 1.42 KB
/
graylog-node.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
55
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: graylog-node
namespace: devops
labels:
component: graylog
role: graylog-node
spec:
replicas: 3
selector:
matchLabels:
component: graylog
role: graylog-node
template:
metadata:
labels:
component: graylog
role: graylog-node
spec:
containers:
- name: graylog
image: ccr.ccs.tencentyun.com/zhulux_sre/graylog:v2.3.0
ports:
- containerPort: 12300
name: udp
protocol: UDP
- containerPort: 9000
name: graylog-api
protocol: TCP
env:
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: "GRAYLOG_ELASTICSEARCH_HOSTS"
value: "http://elasticsearch:9200/"
- name: "GRAYLOT_ELASTICSEARCH_DISCOVERY_ENABLED"
value: "true"
- name: "GRAYLOG_MONGODB_URI"
value: "mongodb://mongo:27017/graylog"
- name: "GRAYLOG_ROOT_TIMEZONE"
value: "Asia/Shanghai"
- name: "GRAYLOG_IS_MASTER"
value: "false"
- name: "GRAYLOG_WEB_ENABLE"
value: "false"
- name: "GRAYLOG_OUTPUT_BATCH_SIZE"
value: "5000"
imagePullSecrets:
- name: qcloudregistrykey