-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathgraylog-deploy.yaml
49 lines (48 loc) · 1.17 KB
/
graylog-deploy.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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: graylog-deploy
labels:
service: graylog-deploy
spec:
replicas: 1
template:
metadata:
labels:
service: graylog-deploy
spec:
containers:
- name: graylog3
image: graylog/graylog:3.0
env:
- name: GRAYLOG_PASSWORD_SECRET
value: g0ABP9MJnWCjWtBX9JHFgjKAmD3wGXP3E0JQNOKlquDHnCn5689QAF8rRL66HacXLPA6fvwMY8BZoVVw0JqHnSAZorDDOdCk
- name: GRAYLOG_ROOT_PASSWORD_SHA2
value: 8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
- name: GRAYLOG_HTTP_EXTERNAL_URI
value: http://your_ip_address:30003/
- name: GRAYLOG_ELASTICSEARCH_HOSTS
value: http://es6:9200
- name: GRAYLOG_MONGODB_URI
value: mongodb://mongo:27017/graylog
ports:
- containerPort: 9000
- containerPort: 12201
---
apiVersion: v1
kind: Service
metadata:
name: graylog3
spec:
type: NodePort
selector:
service: graylog-deploy
ports:
- name: "9000"
port: 9000
targetPort: 9000
nodePort: 30003
- name: "12201"
port: 12201
targetPort: 12201
nodePort: 30004